极其简单的php连库问题!!!!!!!!!!!!!
我写的连库程序:
$link_ID = mysql_connect("localhost","wlxt","wlxt");
mysql_select_db("wlxt");
$result = mysql_query ( "select * from user;" , $link_ID );
$sn_index = mysql_num_rows //---------------($result);
echo($sn_index);
mysql_close($link_ID);
数据库能连上,但在加标记一行会出现以下警告错误,且无法显示记录的条数
supplied argument is not a valid MySQL result resource
请求指点