m00nz00mer Posted February 26, 2008 Share Posted February 26, 2008 hey i was wondering how i could get this array to list in date order? would you use orderby? if($num_rows_comment>0){ while ($comBY = mysql_fetch_array($reviewedByQueryResult)) { echo "Reviewed by: <div class='detailTextGrey'>".$comBY['userName']." </div>"; } } else { echo "No reviews have been posted..."; } ?> Link to comment https://forums.phpfreaks.com/topic/93152-order-array/ Share on other sites More sharing options...
blackwinter Posted February 26, 2008 Share Posted February 26, 2008 For this you would have to change your mysql query and use the ORDER BY date_variable_name and that should work. Link to comment https://forums.phpfreaks.com/topic/93152-order-array/#findComment-477226 Share on other sites More sharing options...
m00nz00mer Posted February 26, 2008 Author Share Posted February 26, 2008 ah cool thanks dude Link to comment https://forums.phpfreaks.com/topic/93152-order-array/#findComment-477253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.