对学习PHP分页技术有很大的帮助 $pagesize=5; $url = $_SERVER["REQUEST_URI"]; $url=parse_url($url); $url=$url[path]; $nump=mysql_query("select * from gbook"); $num=mysql_num_rows($nump);