<?php
require"uap.php";
if(isset($_GET["page"]))
$page=intval($_GET["page"]);
else  
$page=1;
$link = mysql_connect($db_host,$db_username,$db_password);  
if (!$link) {  
die('Could not connect to MySQL: ' . mysql_error());  
}  
$sql="select id from $table_name";
$result=mysql_query($sql,$link);
$num=mysql_num_rows($result);为什么会报
( ! ) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\insert.php on line 13
这样的错,求解释,谢谢