Bullet Posted August 24, 2008 Share Posted August 24, 2008 How do you order by alphabet in php? I know how to order by id. But not alphabet, help? Link to comment https://forums.phpfreaks.com/topic/121082-solved-how-to-sort-by-minor-question/ Share on other sites More sharing options...
Barand Posted August 24, 2008 Share Posted August 24, 2008 What are you trying to sort? Link to comment https://forums.phpfreaks.com/topic/121082-solved-how-to-sort-by-minor-question/#findComment-624210 Share on other sites More sharing options...
JasonLewis Posted August 24, 2008 Share Posted August 24, 2008 If it's an array you are trying to sort alphabetically, look at sort(). That will sort the elements an in array alphabetically. Link to comment https://forums.phpfreaks.com/topic/121082-solved-how-to-sort-by-minor-question/#findComment-624215 Share on other sites More sharing options...
Bullet Posted August 24, 2008 Author Share Posted August 24, 2008 $select = mysql_query("SELECT * FROM users WHERE online > '$timenow' ORDER by id ASC"); Would I sort by username? Link to comment https://forums.phpfreaks.com/topic/121082-solved-how-to-sort-by-minor-question/#findComment-624217 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.