I have following data
uk - 10
in 9
pk 9
gb 4
in 7
pk 7
I want to avoid Fetching Repeated column
is it
right way to fetch only one Entry
uk - 10
in 9
pk 9
gb 4
in 7
pk 7
I want to avoid Fetching Repeated column
is it
Code:
while($fh = $db -> fetch("SELECT country,request FROM table_n GROUP BY id HAVING count(country) <= 1")){ echo '".$fh[0]." ".$fh[1]."<br />'; } output uk - 10 in 9 pk 9 gb 4
Comment