Home >Backend Development >PHP Tutorial >Implement page turning function_PHP tutorial
$limit=25;
if (!empty($start)) $start=0;
if (!empty($s)) $s=0;
mysql_connect("localhost","","");
mysql_select_db(database);
//统计数据库记录总数
$result=mysql_query("select * from table");
$num=mysql_numrows($result);
$result=mysql_query("select * from table order by id limit $start,$limit");
$numb=mysql_numrows($result);
echo "
$val | $val1 |
//数字循环翻页的控制
echo "
以上的程已序可以完成强大的循环翻页功能