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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.