Hi Everyone, Wishing you all a happy new year.
I am trying to sort a probably simple query with no joy hope someone can help.
I want to display the numbers of records shown in each County on my database
mysql_connect($host,$username,$password);
mysql_select_db($database) or die( "Unable to select database");
$query="SELECT county 'Bedfordshire', 'Berkshire' FROM t_data";
$result=mysql_query($query);
$num=mysql_num_rows($result);
while ($row = mysql_fetch_array($result)) {
$Bedfordshire = $row["Bedfordshire"];
$Berkshire = $row["Berkshire"];
}
?>
How dow I show the number of records on Bedfordshire, Berkshire etc. I am echo'ing $Bedfordshire which shows the data not the number of Bedfordshire records held.
any help would be gratly appreciated,
yep still a newbie.
cheers roscor