ataria Posted December 1, 2006 Share Posted December 1, 2006 I have no script.I just want to know how to do it..how would you list something alphabetically? Link to comment https://forums.phpfreaks.com/topic/29170-listing-alphabetically/ Share on other sites More sharing options...
AndyB Posted December 1, 2006 Share Posted December 1, 2006 Is this a trick question?Start with anything beginning with A, then do B, .... orASCII codes are in ascending order to match alphabet order. Link to comment https://forums.phpfreaks.com/topic/29170-listing-alphabetically/#findComment-133727 Share on other sites More sharing options...
ataria Posted December 1, 2006 Author Share Posted December 1, 2006 hha. not a trick question.I meant ... like..okay, this is a random example.. but..I want to pull all the users out of the database, and list them alphabetically..how would I do it?[just do the alphabet part, i know how to pull them] Link to comment https://forums.phpfreaks.com/topic/29170-listing-alphabetically/#findComment-133728 Share on other sites More sharing options...
AndyB Posted December 2, 2006 Share Posted December 2, 2006 [code]$query = "SELECT * from your_table_name ORDER by the_user_name_field ASC";[/code] Link to comment https://forums.phpfreaks.com/topic/29170-listing-alphabetically/#findComment-133848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.