作者GreatPig (大猪)
看板PHP
标题Re: [请益] 分页问题 急救! = =
时间Tue Jan 3 17:24:58 2006
改成:
$sql = "select count(*) as amount from table";
$result = mysql_query($sql);
if(mysql_num_rows($result) > 0){
$row = mysql_fetch_row($result);
$amount = $row['amount'];
}
.......
.......
这样应该就不会再出现那样的错误讯息了
(原本的错误讯息只是警告用,不会影响程式继续执行)
以上仅供参考
--
我的相簿
http://photo.xuite.net/farfar
我的布拉格
http://blog.xuite.net/farfar/blog
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.162.164.182