Is it possible to use the below query? I can't seem to get the count for the second table.![]()
PHP Code:$sSQL = mysql_query("SELECT COUNT(*) FROM users, contacts");
$details = mysql_fetch_array($sSQL);
echo "The total amount of users is <b>$details[0]</b>.<br>
The total amount of contacts is <b>$details[1]</b>.<p>";




Reply With Quote