I've been trying to display data residing in a MySQL database in an HTML table that is 4 columns wide.

For example, I have a table in my database containing 5 fields per record and I want all 5 fields to be displayed in the first box of my HTML table. The second box would contain the next 5 fields for my second record. Once all 4 boxes of my HTML table are filled with the first 4 records in my database table, it creates a second set of 4 boxes in my HTML table, etc. Think of it like an image gallery...but for text.

Column 1 Column 2 Column 3 Column 4
Record 1 Record 2 Record 3 Record 4
Record 5 Record 6 Record 6 Record 8

Does this make any sense? If someone could show me an example or link to a PHP tutorial for this it would be greatly appreciated!

Thank you!

    2 months later

    could you display what you have thus far?
    any link (preferably)
    or perhaps you could post the codes to the different groups.

      Write a Reply...