Hi I have code to read from a mysql database and output the records. This is working but I want to group the output into subcategories. At the moment all records are being output one under the other. I need the code amended to have a heading(Sub Category) and then if there are, say, 5 records under this that they then appear.
At the moment it looks like this
Record 1: Category | Sub Category | Title | price etc
Record 2: Category | Sub Category | Title | price etc
Record 3: Category | Sub Category | Title | price etc
I want it to look like:
Sub Category 2
Record 1: Category | Sub Category | Title | price etc
Record 3: Category | Sub Category | Title | price etc
Sub Category 1
Record 2: Category | Sub Category | Title | price etc
Hope this makes sense
i have very great experience in php and mysql development and have done many projects like this and this is also a very common for me.
please take a look at my reviews and portfolio.
and then please update me about your next step.
thanks