View Single Post
Old 04-30-2009, 04:37 PM  
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Quote:
Originally Posted by quantum-x View Post
SELECT * FROM `table` ORDER BY `time` DESC,`views` DESC
.. ?
That was their first suggestion, didn't work :/

Even tried: SELECT * FROM `table`, DATE_FORMAT(`time`, '%M %e %Y') as formatTime ORDER BY `formatTime` DESC,`views` DESC
with no luck. The first one didn't sort them by views at all, and the 2nd one had the ones with most views at the top no matter what date.

Maybe I could just sort everything by views, and then as it's looping through throw each post into the group which date it belongs to..?
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 04-30-2009 at 04:41 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote