i have one table where one column name is city. for every user i can display how many number of users are there from that city (from which user belongs) but i want to display who all are . so i have tried this mysql query but it is not working
$res = sql_query("select * from ".tb()."data where city='{$owner['city']}' group by city order by fullname limit 10 " );
if any one is having any idea please advice how to solve.the main work is to show all users from that city suppose if user A belongs to Tokyo so when someone will click on that link which shows how many numbers are there from Tokyo it should show all users from that country .other part i have done and i am able to display also but it displays all results .
Remove the
group byfrom the request: