Bolanb Posted February 27, 2009 Share Posted February 27, 2009 I have a feature that shows the most recently replied to posts of each forum on my website, except in some forums the person who has replied the latest remains on the bottom instead of being aligned at the top, and in other forums it works perfectly (aligned on the top). What could be causing such a contradiction? My coding for retrieving the data is: <?php $faces="SELECT * FROM ffaces WHERE fid='$fid1' ORDER BY date ASC"; $fresult=mysql_query($faces); $color="1"; while($rowface=@mysql_fetch_array($fresult)){ if($color==1){ echo "<tr bgcolor=#000030> <td vlign=middle> <font face=arial size=2><u><a href='".$rowface['link']."'> ".$rowface['user']."</u></a></td></tr>"; $color="2"; } else { echo "<tr bgcolor=#000050> <td vlign=middle> <font face=arial size=2><u><a href='".$rowface['link']."'> ".$rowface['user']."</u></a></td></tr>"; $color="1"; } } ?> Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/147173-not-ordering-by-date/ Share on other sites More sharing options...
fenway Posted February 28, 2009 Share Posted February 28, 2009 Post the table structure as is required by the stickies. Quote Link to comment https://forums.phpfreaks.com/topic/147173-not-ordering-by-date/#findComment-773304 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.