日期:2014-05-17  浏览次数:20516 次

php分页显示,请问这如何解决page未定义?
<link href="css/style.css" rel="stylesheet">
<?php 
include("conn/conn.php");
?>
<table width="563" height="587" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="563" height="587" valign="top" bgcolor="#FFFFFF"><table width="563" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="563" height="27" background="Images/fufei.gif">&nbsp;</td>
      </tr>
      <tr>
        <td height="96" align="center" valign="top"><br>
          <?php
$date1=date("Y-m-d");
$sgsql=mysql_query("select * from tb_leaguerinfo  where type='公寓信息' and showday>='$date1' and checkstate=1 ");
$sginfo=mysql_fetch_array($sgsql);
if($sginfo){
do{
?>
          <table width="540" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="26"><span class="style1">『公寓信息』</span><span class="style8">&nbsp;<?php echo $sginfo[title];?>&nbsp;</span><span class="style6">&nbsp;<?php echo $sginfo[edate];?></span></td>
            </tr>
            <tr>
              <td height="26">&nbsp;&nbsp;&nbsp;<span class="style5">&nbsp;<?php echo $sginfo[content];?></span></td>
            </tr>
            <tr>
              <td height="26">&nbsp;<span class="style8">联系人:<?php echo $sginfo[linkman];?>&nbsp;&nbsp;&nbsp;联系电话:<?php echo $sginfo[tel];?></span></td>
            </tr>
            <tr>
              <td height="3" background="Images/line1.gif"></td>
            </tr>
          </table>
          <?php
}while($sginfo=mysql_fetch_array($sgsql));
}else{
?>
          <table width="540" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="center">暂无电脑信息资源!</td>