No errors.
At least we know there is no syntax errors.
Is this what you get:
So far we have rows in signatures
We can use [man]print_r[/man] to see what $num_rows holds.
We can also add some more mysql testing.
<?php
error_reporting(E_ALL); // Get debug information
ini_set('display_errors',1);
include("config.inc.php");
mysql_connect('localhost',$username,$password);
mysql_select_db($dbname) or die( "Unable to select database");
$sql = "SELECT COUNT(*) FROM `Signatures`";
$result = mysql_query($sql);
if(!$result){
echo "Count query failed: ".mysql_error();
}
$num_rows = mysql_fetch_row($result);
if(!$num_rows){
echo 'Num_rows is FALSE. '.mysql_error();
}
echo "So far we have " . $num_rows[0] . " rows in signatures";
echo '<pre>'.print_r($num_rows, true).'</pre>'; // dump $num_rows
?>