Ok I must be missing the concept completely.. getting frustrated here.
I have tried all of the above suggestions and have this for the code now after reading many many links on this subject.
<?php
$sql = "SELECT COUNT (*) from cat_info WHERE catfathername = '$catname'";
$result=mysql_query($sql);
$num = mysql_numrows($result);
echo "$result";
?>
but get this error
mysql_numrows(): supplied argument is not a valid MySQL result resource
Maybe I should explain what I am doing. I have a table named cat_info with columns named id, catname, catfathername. What I am attempting to do is show the number of catfathername that are like catname. Aghhh now I am more confused...help!!!
LOL thnks!