Jump to content

[SOLVED] help with sorting records


DrTrans

Recommended Posts

I need some help with figuring out sorting

 


$connect = ('localhost','root','');
mysql_select_db("tester");
$query = "SELECT * FROM tester";
$result = mysql_connect($query);
while($row=mysql_fetch_array($result)) {
$id    = $row['id'];
$prop = $row['propertyname'];

echo "$prop -- $id ";
}

 

Now i want it to sort it A to Z by first letter of $prop.

 

Thanks

 

 

DrTrans

Link to comment
https://forums.phpfreaks.com/topic/170772-solved-help-with-sorting-records/
Share on other sites

Archived

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

×
×
  • Create New...

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.