I have two MYSQL queries as follows:
$anchors = mysql_query("SELECT * FROM anchors WHERE site_url = '$site_current' AND site_type = 'slave' LIMIT $links_nr");
// the second query has an offset = $links_nr
$anchors2 = mysql_query("SELECT * FROM `anchors` WHERE `site_url` = '$site_current' AND `site_type` = 'slave' LIMIT $links_nr,99999");
I want to display the results ordered alphabetically, how do you advise me to do it?
Thank you
Use
ORDER BY site_url ASCin your SQL query to sort the result set