PHP Grouping Results
PHP Grouping Results
Out of context: Reply #6
- Started
- Last post
- 8 Responses
- maximillion_0
assuming you link the categories to the items via an id, i would put the category names into an array with the id as key. do yr query and loop through the items detecting when the cat id changes (record the last id used and then detect when its different) then use the id to ref the name in the array you made