Welcome Guest, Not a member yet? Register   Sign In
how to create queries like this...
#18

[eluser]tusukgigi[/eluser]
i wanna count the same field
like this

indonesia(2)
-jakarta
-bandung

jepang(2)
-tokyo
-okinawa


but i got error...
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

$sql = "select city.city_name, count(city.city_name) AS t district.district_name from city join district
on city.district_id = district.id WHERE city.district_id = district.id order by district.district_name asc,
city.city_name asc";


Messages In This Thread
how to create queries like this... - by El Forum - 07-29-2010, 02:53 AM
how to create queries like this... - by El Forum - 07-29-2010, 02:57 AM
how to create queries like this... - by El Forum - 07-29-2010, 03:01 AM
how to create queries like this... - by El Forum - 07-29-2010, 03:28 AM
how to create queries like this... - by El Forum - 07-29-2010, 03:29 AM
how to create queries like this... - by El Forum - 07-29-2010, 03:36 AM
how to create queries like this... - by El Forum - 07-29-2010, 03:44 AM
how to create queries like this... - by El Forum - 07-29-2010, 03:47 AM
how to create queries like this... - by El Forum - 07-29-2010, 03:53 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:05 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:08 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:11 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:22 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:24 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:26 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:30 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:33 AM
how to create queries like this... - by El Forum - 07-29-2010, 04:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB