Does anybody know what's wrong ? Your help is appreciated 🙂
This is the error that I get:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/cvtchat/HowManyUsersde.php3 on line 9
There are currently users in phpMyChat
This is the php3 file:
<?
$mysql = mysql_connect ("localhost","yogajan_pchat2"
,"Your Password");
$dbase = mysql_select_db("yogajan_pchat2");
$query = "SELECT DISTINCT u.username "
. "FROM C_USERS u, C_MESSAGES m WHERE "
. "u.room = m.room AND m.type = 1";
$result = mysql_query($query);
$num_of_rows = mysql_num_rows($result);
mysql_close($mysql);
echo ("There are currently $num_of_rows users in phpMyChat");
?>
I give up with this. Thanks in advance for your help 🙂
YogaSukha