I have a database query that returns ItemID, ItemName, CategoryID and CategoryName. I am trying to group my results into separate html tables by their CategoryName so the end result looks something like this:
________________________________ |____________CategoryName________| | ItemName | | |__________| | | ItemName | | |__________| | | ItemName | | |__________|_____________________| ________________________________ |____________CategoryName________| | ItemName | | |__________| | | ItemName | | |__________| | | ItemName | | |__________|_____________________|
Currently I can output my data into one table, but I am uncertain how to go about the rest.
Seems i have better ascii art skills than php skills :/
The HTML is off, but this should get you started: