phplee Posted May 27, 2004 Share Posted May 27, 2004 i am trying to sort data that i am getting from a mysql database in alphabetical order, does anyone know what strip of code i might use to do this? e.g. $Description = $newArray['Description']; $EstablishmentName = $newArray['EstablishmentName']; echo "$EstablishmentName, $Description this gives me a list, can i sort it? any help much appreciated thanks lee Link to comment https://forums.phpfreaks.com/topic/1853-sorting-data/ Share on other sites More sharing options...
morpheus.100 Posted May 27, 2004 Share Posted May 27, 2004 Use the wizard and change sort to asc or desc (ascending or descending) dependant on which way you wish to display the results. Link to comment https://forums.phpfreaks.com/topic/1853-sorting-data/#findComment-6061 Share on other sites More sharing options...
morpheus.100 Posted May 27, 2004 Share Posted May 27, 2004 Or you could press F1 and read the onboard manual. Look in the developing php apllications readily section. You can also download for free from Mac's website the better manual in .pdf format and print yourselves a copy. Link to comment https://forums.phpfreaks.com/topic/1853-sorting-data/#findComment-6062 Share on other sites More sharing options...
morpheus.100 Posted May 27, 2004 Share Posted May 27, 2004 Use the wizard and change sort to asc or desc (ascending or descending) dependant on which way you wish to display the results. Link to comment https://forums.phpfreaks.com/topic/1853-sorting-data/#findComment-6063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.