I'm new here (in PHP too :D) and I'm trying to install a lottery script but get this error:
Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /home/u289308161/public_html/lottery/get_lottery.php on line 7 Table 'u289308161_lot.lottery' doesn't exist
u289308161_lot is the database name and the user that uses it.
The get_lottery.php file is:
<?php
require 'connect.php';
$query="SELECT * FROM lottery ORDER BY lottery_id DESC LIMIT 10";
$result=mysql_query($query);
$num=mysql_numrows($result);
?>
Please help!