php分页本地显示正常,到服务器上就不显示了,为什么?

2013 年 5 月 9 日4250

<table><?phpinclude("conn.php");
$pagesize=60;
$row=mysql_query("select count(*)from c_book");
$myrow=mysql_fetch_array($row,$conn);$num=$myrow[0];$pages=intval($num/$pagesize);
if($num%$pagesize)
$pages++;
if(isset($_GET['page'])){
$page=intval($_GET['page']);}else{$page=1;
}
$offset=($page-1)*$pagesize;
$row=mysql_query("select * from c_book order by c_book_id desc limit $offset,$pagesize");
if($row==true){while($myrow=mysql_fetch_array($row)){?>
<tr>

<td>
<a href="c_book_down_count.php?c_book_id=<?php echo $myrow[c_book_id]?>" target="_blank"><?php echo $myrow[c_book_name];?></a>
</td>

<td><div>发布时间:<?php echo $myrow[c_book_date];?></div></td>

<td><div>|下载次数:<?php echo $myrow[c_book_downnum]."<br>";?></div></td>

</tr>

<?php }}?>

<tr>
<td colspan="3">
<div> <span>翻页:</span> <?phpfor($i=1;$i<=$pages;$i++){echo "<a href='c_book.php?page=".$i."'>".$i."</a>"."&nbsp";}?> </div></td></tr>

</table>

</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td valign="bottom"><div> <p>&nbsp;</p> <p>&nbsp;</p> </div></td> <td>&nbsp;</td> </tr></table>

0 0