| " />
$Num_Pages) || ($_GET[Page]<0)) print "
จำนวน $Page มากกว่า $Num_Pages ยังไม่มีข้อความ
"; if ($_GET[id_pro] !="") { $sql="select * from tb_pro where id_pro = $_GET[id_pro] order by id_pro asc LIMIT $Page_start , $Per_Page"; }else if($_POST[IDCate]!=""){ $sql="select * from tb_pro where id_cate = $_POST[IDCate] order by id_pro asc LIMIT $Page_start , $Per_Page"; }else{ $sql="select * from tb_pro order by id_pro asc LIMIT $Page_start , $Per_Page"; } $result = mysql_query($sql); ?>



>


พบทั้งหมด รายการ รวมทั้งหมด : หน้า : << ย้อนกลับ"; for($i=1; $i<$Num_Pages; $i++){ if($i != $_GET[Page]) echo "[$i]"; else echo " $i "; } /*สร้างปุ่มเดินหน้า */ if($_GET[Page]!=$Num_Pages) echo " หน้าถัดไป >> "; mysql_close(); ?>

........................................................................................................................................................................................................................................................