ok, so let's try another way, how do i finish this code? I need to select all the common parishes in the parish column, add them all up and display the total number of entries for each individual parish.
After that's printed, i need to work out the percentages of each.
heres my query.
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT parish,count(*) FROM submit GROUP BY parish";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
am i totally off? and how do I print these results. basicaly, how do i finish what i need to do?