waynew Posted February 9, 2009 Share Posted February 9, 2009 I have a table for cranes etc that the user can enter in and then have them display in of their lifting capacity (largest first). Please note that the column capacity is of type text. SELECT * FROM crane WHERE type_id = '$type_id' ORDER BY capacity LIMIT $rows, $offset Problem can be seen here: See here Link to comment https://forums.phpfreaks.com/topic/144498-solved-ordering-problem/ Share on other sites More sharing options...
waynew Posted February 9, 2009 Author Share Posted February 9, 2009 Ok I know the problem. It's obviously because I used a TEXT column etc. Meaning its not ordering by numbers, its ordering by the aplahebtical position of number. Surprised I didn't catch onto that before. Link to comment https://forums.phpfreaks.com/topic/144498-solved-ordering-problem/#findComment-758253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.