kpetsche20 Posted June 30, 2008 Share Posted June 30, 2008 $select = "SELECT * FROM content WHERE status !='1' ORDER BY name ASC"; That's the code I have it's not sorting in any order though. Link to comment https://forums.phpfreaks.com/topic/112649-how-do-i-display-results-in-alphabetical-order/ Share on other sites More sharing options...
br0ken Posted June 30, 2008 Share Posted June 30, 2008 That should be sorting alphabetical by the name field. Try this... <?php $select = "SELECT * FROM content WHERE status !='1' ORDER BY TRIM(name) ASC"; ?> Link to comment https://forums.phpfreaks.com/topic/112649-how-do-i-display-results-in-alphabetical-order/#findComment-578498 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.