I want to insert my query results into an array for sorting. The code i'm using will display the results but not in alphabetical order, so i'd like to insert them into an array and use sort().
$q2 = @mysql_query("SELECT LAN_details.name, LAN_details.telephone FROM LAN_details, LAN_detailcategory, LAN_category
WHERE LAN_details.id=LAN_detailcategory.detailid AND LAN_category.id=LAN_detailcategory.categoryid AND LAN_category.name='bars'
ORDER BY LAN_details.id LIMIT 5, 25");
while ($row = mysql_fetch_array($q2)) {
$name = $row[1];
$telephone = $row[2];
echo "$name - $telephone<br>";
}