<?function page($sql,$pagenum){ global $cur_page,$total_page_nums,$last_page,$next_page; $result =mysql_query($sql); $num=mysql_num_rows($result); $total_page_nums=intval($num/$pagenum); if($num%$pagenum) $total_page_nums = $total_page_nums + 1; i...