Hi I will Explain what i want...
I have a table with records like this
...........................
country_name - username
India - abc1
Australia - abc2
India - abc3
USA - abc4
Australis - abc5
Lebanon - abc6
...........................
From Above Table I need to get country list without repeat, is there any chance to get like this...
Ex Code:
$sql = 'bla bla bla bla bla';
$res = mysql_query($sql);
while($row = mysql_fetch_array($res)){
echo $row['country_name'].'<br /><br />';
}
Ex Output(Like this):
India
Australia
USA
Lebanon
If is there any change to solve my issue please tell me and advance thanks for that!
country_name
anduser_name
separate columns? If so trySELECT DISTINCT country_name FROM ...
– Noah Duncan