您好我是從我的sql表中檢索數據在PHP中我收到警告和會話值不附和警告:mysql_num_rows()期望參數1是資源,在第8行E: xampp htdocs crm1 list_user1.php中給出的布爾值
這裏是IMY
list1_user.php
<?php
$eid=$_SESSION['eid'];
include('conn.php');
echo $eid;
$per_page = 10;
$select_table = "select * from clientreg where eid=$eid";
$variable = mysql_query($select_table);
$count = mysql_num_rows($variable);
$pages = ceil($count/$per_page)
?>
我哪裏錯了,請短路我的問題
在此先感謝
請花點時間閱讀http://stackoverflow.com/help/how問問題,然後考慮修改你的問題。 – 2014-09-01 05:46:05
msql_ *已棄用。你應該使用mysqli_ *或者pdo。 – Jens 2014-09-01 05:50:10
可能重複[mysql \ _fetch \ _array()期望參數1是資源(或mysqli \ _result),布爾給定](http://stackoverflow.com/questions/2973202/mysql-fetch-array-expects-parameter -1-待資源或-mysqli的對結果布爾) – BlitZ 2014-09-01 06:10:04