Results 1 to 6 of 6

 

Thread: Removing Field Names from HTML Table (from MySQL database)

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Jan 2005
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts


    Hi,
    I've managed to output an html table on my website from MySQL database which contains a datafeed. My html table consists of rows each with 3 products (containing product name, price, description, image, etc).

    The first 'cell' of the table on the first row is showing the Field Names from MySQL database and then the first product in my table takes up 'cell' 2.

    How can I remove those Field Names from showing in my html table so that the first 'cell' is a proper product.

    Thanks for any help, hope that makes sense, if not I will try to explain further.

  2. #2
    Registered User

    Status
    Offline
    Join Date
    May 2009
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 3 Posts
    Hi,

    Can you show us what code you are using?

    James

  3. #3
    careybaird's Avatar
    Registered User

    Status
    Offline
    Join Date
    Apr 2008
    Posts
    6
    Thanks
    0
    Thanked 1 Time in 1 Post
    It is actually more work/code to get the field names out and display them.. so I suspect you have copied the code from somewhere. It will be easy to remove if you can show the code.
    Fresh Store Builder
    Easily Create SEO Friendly Amazon Stores that Convert

  4. The Following User Says Thank You to careybaird For This Useful Post:

    overrising (15-11-10)

  5. #4
    Typing with both fingers.

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Allt Y Coed Farm, North Pembrokeshire
    Posts
    4,123
    Thanks
    247
    Thanked 198 Times in 157 Posts
    It could be that the data you imported contained the field names as the first line - just access your table and delete the first row.

    Ta

    Baz

  6. The Following User Says Thank You to Barry For This Useful Post:

    overrising (15-11-10)

  7. #5
    Registered User

    Status
    Offline
    Join Date
    Jan 2005
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks people for your help, I realised that the field names were in the first row of my database. I've only been learning this stuff for a week, lots of reading on the net, lots of playing about with MySQL database and some PHP scripts from the net. Steep learning curve but getting there slowly but surely.

    Most things seem so blindingly obvious once somebody has pointed them out.

    Cheers.

  8. #6
    Typing with both fingers.

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Allt Y Coed Farm, North Pembrokeshire
    Posts
    4,123
    Thanks
    247
    Thanked 198 Times in 157 Posts
    No problems anytime mate - we have all been there - happy to help.

    Ta

    Barry



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2