<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
do{?>
<table height="100" border="0">
<tr>
<td height="26">
【<?php echo str_replace($content,"<font color='#FF0000'>".$content."</font>",$rowb["type"]);?>】
<?php echo str_replace($content,"<font color='#FF0000'>".$content."</font>",$rowb["title"]);?>
<?php echo str_replace($content,"<font color='#FF0000'>".$content."</font>",$rowb["edate"]);?>
</td>
</tr>
<tr>
<td height="26">
<?php echo str_replace($content,"<font color='#FF0000'>".$content."</font>",$rowb["content"]);?>
</td>
</tr>
<tr>
<td height="26">聯系人:
<?php echo str_replace($content,"<font color='#FF0000'>".$content."</font>",$rowb["linkman"]);?>
聯系電話:<?php echo str_replace($content,"<font color='#FF0000'>".$content."</font>",$rowb["tel"]);?>
</td>
</tr>
</table>
<div style="width:561px; border-bottom:1px dashed #CCCCCC;"></div>
<?php }while($rowb = mysql_fetch_array($sql));
}
?>
</div>
<div style="width:560px; height:20px; border:1px #000000 solid; margin-left:217px; font-size:13px;">
<?php echo "當前為第".$sessin."頁";
echo "共".$s."頁";
echo " ";
echo "共".$c."條記錄";
?>
<?php
$prev_page = $sessin - 1;//定義上一頁為該頁減一
$next_page = $sessin + 1;//定義下一頁為該頁加一
if($sessin<=1)
{
echo "<a href='find.php?find=1'>首頁</a>";
}
else
{
echo"<a href='find.php?find=1'>首頁</a>";
}
if($prev_page<=1)
{
echo "上一頁";
}
else
{
echo"<a href='find.php?find=$prev_page'>上一頁</a>";
}
if($prev_page>$s)
{
echo "下一頁";
}
else
{
echo"<a href='find.php?find=$next_page'>下一頁</a>";
}
if($sessin>=$s)
{
echo "尾頁";
}
else
{
echo"<a href='find.php?find=$s'>尾頁</a>";
}
}
?>
</div>
</div>
<div style="clear:both">
<?php include("bottom.php")?>
</div>
</div>
求大神幫忙看一下我那寫錯了 翻頁後數據不顯示 幫忙改正 謝謝。。。。。。
應該是你的下一頁鏈接裡沒有把相關的參數重新傳回到本頁。