I have a database with area details like state name, district, city, area size, ...
Now I would like to count a districts value from state name and assign that value to some variable for showing html page.
Example: The tamil nadu state includes total of 30 districts.
Query for showing states list,
$qry = "SELECT DISTINCT state_Name FROM area_info ORDER BY state_Name";
How to do this.. anyone please help me..