@include("connect.php"); $sql1="select * from guestbook"; $result1=mysql_query($sql1); $num=mysql_num_rows($result1); if(empty($_GET[offset])){ $_GET[offset]=0;} $page_sum=ceil($num/6); $sql="select * from guestbook order by id desc limit $_GET[offset],6"; $result=mysql_query($sql); while($array=mysql_fetch_array($result)){然后又有这样的问题:Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/cieeweb0/alex/guestbook/index.php on line 200Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/cieeweb0/alex/guestbook/index.php on line 207改了几次都没办法,现在是在linux服务器上,但是在win下世正常的
$sql1="select * from guestbook";
$result1=mysql_query($sql1);
$num=mysql_num_rows($result1);
if(empty($_GET[offset])){ $_GET[offset]=0;}
$page_sum=ceil($num/6);
$sql="select * from guestbook order by id desc limit $_GET[offset],6";
$result=mysql_query($sql);
while($array=mysql_fetch_array($result)){然后又有这样的问题:Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/cieeweb0/alex/guestbook/index.php on line 200Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/cieeweb0/alex/guestbook/index.php on line 207改了几次都没办法,现在是在linux服务器上,但是在win下世正常的