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! Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.