<?php
include_once("functions/database.php");
include_once("functions/page.php");
$sql = "select * from category";
get_connection();
//分页的实现
$result_news = mysql_query($sql);
$total_records = mysql_num_rows($result_news);
$page_size = 3;
if(isset($_GET["page_current"])){
	$page_current = $_GET["page_current"];
}else{
	$page_current = 1;
}
$start = ($page_current-1)*$page_size;
$result_sql = "select * from category";
$result_set = mysql_query($result_sql);
close_connection();
echo "分类浏览信息如下：<br/>";
while($row = mysql_fetch_array($result_set)){
echo "<hr/>";
	echo "类别的姓名：".$row["name"]."<br/>";
}
//分页的实现
$url = "index.php?url=review_list.php";
page($total_records,$page_size,$page_current,$url,"");
?>
