PHPʵ

2021 年 10 月 28 日1330

<?php

if(!$whichpage)

{

$notepage=1;

}

else

{

$notepage=$whichpage;

}

$noterecs=0;

$pagesize=10;

$bbsconn=mysql_connect("localhost","root");

mysql_select_db("rainwindy",$bbsconn);

$bbsresult=mysql_query("select * from bbs order by id desc",$bbsconn);

$rsnum=mysql_num_rows($bbsresult);

$pagecount=ceil($rsnum/$pagesize);

mysql_data_seek($bbsresult,($notepage-1)*10);

?>

<div align=right>

<table border="0" width="730" cellspacing="0" cellpadding="0">

<tr>

<td width="41" height="30" bgcolor="#C0C0C0" bordercolor="#0000FF" valign="middle" align="center">

0 0