using PHP (running on Apache/Linux) I have used the following script to find the number of rows in the User Database.
$Link = mysql_connect("DB_HOST", "DB_USER", "DB_PASS")
or die (mysql_errno().": ".mysql_error());
mysql_select_db ("DB_TABLE", $Link)
or die (mysql_errno().": ".mysql_error());
$Query = "SELECT Count(*) FROM Users";
$Results = mysql_query($Query, $Link)
or die (mysql_errno().": ".mysql_error());
echo $Results;
Problem is this echos "Resource id #2" and not the count. How do I get the count? Thanks.