please help me
when i run my code
by using Mysql_num_rows()
Warning: Supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\php\connect to database.php on line 13
this is my code
<?php
/* declar some relevant variables */
$Host = "localhost"; //location of mySQL on server
$Table = "books"; //name of the table within the database
mysql_connect ($Host,$Table) or
die ("unable to connect to database");
//mysql_select_db("$Name") or
//die ("unable to select DB");
$sqlquery = "SELECT * FROM $Table";
$result = Mysql_query($sqlquery);
$number = Mysql_num_rows($result);
?>
what shall i do
:confused: