Results 1 to 5 of 5
Thread: Formatting HTML tables with PHP
Jul 18, 2002, 16:29 #1
- Join Date
- May 2002
- 0 Post(s)
- 0 Thread(s)
Formatting HTML tables with PHP
I've got a basic php script that queries a MySQL db and places a recordset limited to 4 into an array then loops through and echos out a distinct html table row per db row.
How do I go about echoing the table so it has one row with two cells, each cell containing a different array value (ie. $row["id"] goes in first cell, $row2["id"] goes in second cell, this row loops and row3["id"] goes in first cell in second table row and row4["id"]goes in second cell in second table row).
I've attached a picture of how I need it to look if I've totally muddled the issue (note the picture shows 4 cells, I just need to loop the one row)....