Guernica Posted May 21, 2011 Share Posted May 21, 2011 Here's the query: $sql = mysql_query("SELECT * FROM resources WHERE gameCat = '' ORDER BY systemCat,order_id"); I want something to happen when the systemCat changes in the results. Like this: if($row['systemCat'] CHANGES){ echo '<div id="seperator"></div>'; } Any ideas? Thank you! Link to comment https://forums.phpfreaks.com/topic/237019-seperate-results-by-change-in-first-order-by-term/ Share on other sites More sharing options...
PFMaBiSmAd Posted May 21, 2011 Share Posted May 21, 2011 See this post - http://www.phpfreaks.com/forums/index.php?topic=328053.msg1544137#msg1544137 Link to comment https://forums.phpfreaks.com/topic/237019-seperate-results-by-change-in-first-order-by-term/#findComment-1218287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.