I want to display how many records are in a mysql table. I found a post that is related and got to this point
<?php
include("config.inc.php");
mysql_connect(localhost,$username,$password,$dbname);
mysql_select_db($dbname) or die( "Unable to select database");
$sql = "SELECT COUNT(*) FROM `Signatures`;
$result = mysql_query($sql) or die("Count query failed: " . mysql_error();
$num_rows = mysql_fetch_row($result);
echo "So far we have " . $num_rows[0] . " rows."; signatures
?>
I inserted the code on a html page in a text section of the page. I dont get an error, but I dont get the count either.
What do I need to do?