<?php
$page=$_GET[p];
//连接数据库;
$db="test";
$host="localhost";
$username="root";
$password="123456";
$db="test";
$conn=mysql_connect($host,$username,$password);
if(!$conn){
echo "连接失败";
exit;
}
mysql_select_db($db);
mysql_query("set names utf8");
//操作数据库
$sql="select *from mytable limit". ($page-1)*10.",10";
?>
kianjian
晚安sp