Jump to content


Photo

sort ordering


  • Please log in to reply
1 reply to this topic

#1 treez

treez
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 26 April 2006 - 02:24 AM

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

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

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?

#2 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 26 April 2006 - 02:27 AM

Look here

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

Lite...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users