Jump to content

Archived

This topic is now archived and is closed to further replies.

phplee

sorting data

Recommended Posts

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

Share this post


Link to post
Share on other sites

Use the wizard and change sort to asc or desc (ascending or descending) dependant on which way you wish to display the results.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Use the wizard and change sort to asc or desc (ascending or descending) dependant on which way you wish to display the results.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.