I am attempting to create an html table from a php file from a mysql query.
The columns in the query are:
ID | FirstName | LastName | Phone
1 | Bob | Smith | 555-5555
2 | Bill | Murrey | 444-4444
3 | James | Bond | 333-3333
My sql: "SELECT * FROM people LIMIT 0,5"
What I want to do is have it display each query result VERTICALLY so that the query results will go vertical instead of horizontal look something like:
First Name: Bob | Bill | James
Last Name: Smith| Murrey | Bond
Phone: 555-555-5555 | 444-444-4444 | 333-3333
Does anyone have any idea as to how I can get the query to the table like this?
Thanks in advance for all your help!