I am using below code to loop records and display the Country value. If there are duplicate values they are all listed like Australia, Australia, United States, United States, United States. How can I remove any duplicates and just show Australia, United States? I cant use DISTINCT in mysql_query as I need to use an existing mysql_query. Thanks
<?php
while($row = mysql_fetch_array($result)) {
echo $row['Country'];
}
?>
I cant use DISTINCT in mysql_query as I need to use an existing mysql_query.
I am using
$result = mysql_query("SELECT * FROM specials WHERE expiry > CURDATE() ORDER BY Country;") or die(mysql_error());