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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/144498-solved-ordering-problem/#findComment-758253 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.