Sort Results - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Sort Results (/showthread.php?tid=45196) |
Sort Results - El Forum - 09-12-2011 [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) {?> |