PHP Grouping Results
PHP Grouping Results
Out of context: Reply #7
- Started
- Last post
- 8 Responses
- heavyt0
Agree with Maxi.
What I have done in the past is to use a var to hold the current category name. As you loop through your results, check each time if the category == that var. If it does, you are still in the same category. If it is not equal, you know you've moved on to the next cat.