Jump to content

[SOLVED] SORT ORDER PROBLEM


phpretard

Recommended Posts

The code below puts the number 125 before the number 25 when sorted asc.  I am pretty sure it's because of the 1 in 125.

 

I would like to arrange asc with the 25 first because these aren't the only numbers involved.

 

Has anyone run into this before?

 

$result = mysql_query("SELECT * FROM rentals ORDER by $var");

 

 

Any help ??

Link to comment
https://forums.phpfreaks.com/topic/89592-solved-sort-order-problem/
Share on other sites

Archived

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

×
×
  • Create New...

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.