[eluser]Unknown[/eluser]
Hello,
I'm trying to sort a group of listings. Each listing is in subcategory. How can I print the subcategory name, one time, followed by all the listings in the subcategory.
Thanks in advance
Code:
<?foreach($results as $result) {?>
<p>
<?=$result->subcategory_subcategory;?><br />
<?=$result->item_title;?><br />
<?=$result->item_description;?><br />
</p>
<?}?>