Help please
I got this error on the script...
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/sweethon/public_html/batchgame/index.php on line 89
The page comes up and everything... BUT this error worries me.. also I've been getting this error on other scripts not just this one.. so generl advice would be nice also.. any advice would be nice lol!. I tried a few things with it but nothing seemed to work so i gave up.. thanks
HERES LINE 79 TO 92
</tr>
<tr align="center" bgcolor="#666666">
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Batch</font></td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">E-Gold</font></td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Bet</font></td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Win</font></td>
</tr>
<?
$res = mysql_query("select * from batch where gameid='$_id' order by id desc");
if (mysql_num_rows($res)>0) {
$ctr = 0;
while ($row=mysql_fetch_array($res)) {
$ctr = $ctr+1;
?>
|