Jump to content

Archived

This topic is now archived and is closed to further replies.

treez

sort ordering

Recommended Posts

I have a thing that is listing me some stuff from my database.

[code]$jo_result = mysql_query("SELECT * FROM users_pages ORDER BY views DESC LIMIT 30");
while ( $jo_row = mysql_fetch_array($jo_result) )
{[/code]

But when it lists it by VIEWS it goes like this:

97
95
9
85
84
80
8

etc

How can I stop this and make it go properly?

Share this post


Link to post
Share on other sites
Look here

[a href=\"http://us3.php.net/natsort\" target=\"_blank\"]http://us3.php.net/natsort[/a]

Lite...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.