Jump to content

ORDER BY numbers in mysql query *SOLVED*


sanfly

Recommended Posts

I have the following query

[code]$r2 = mysql_query("SELECT * FROM album_tracks WHERE at_album = '$aId' ORDER BY at_order") or die(mysql_error());[/code]

at_order is a number, and there are 10 rows. When the results are listed, they come in the following order: 1, 10, 2, 3, 4 etc....

How do I get the numbers to list properly? ie: 1, 2, 3, 4 ..... 10
Link to comment
https://forums.phpfreaks.com/topic/11963-order-by-numbers-in-mysql-query-solved/
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.