อาคาร : 1
ห้อง : 1

1


20

โดย : xaobygwg วันที่ : 22-09-2018 เวลา : 11:20:37
View : 264 Reply : 0


prepare($reply); $qryReply->execute(); $Num_Rows = $qryReply->rowCount(); $Per_Page = 5; $Page = isset($_GET['Page']) ? $_GET['Page'] : 1; $Prev_Page = $Page - 1; $Next_Page = $Page + 1; $Page_Start = (($Per_Page * $Page) - $Per_Page); if ($Num_Rows <= $Per_Page) { $Num_Pages = 1; } else if (($Num_Rows % $Per_Page) == 0) { $Num_Pages = ($Num_Rows / $Per_Page); } else { $Num_Pages = ($Num_Rows / $Per_Page) + 1; $Num_Pages = (int)$Num_Pages; } $reply .= "LIMIT $Page_Start , $Per_Page;"; $qryReply = $conn->prepare($reply); $qryReply->execute(); while ($result = $qryReply->fetch(PDO::FETCH_ASSOC)) { $num_com++; ?>
No. :
โดย : วันที่ : 01-01-1970 07:00:00

หน้า : << ก่อนหนัา "; } for ($i = 1; $i <= $Num_Pages; $i++) { if ($i != $Page) { echo " $i "; } else { echo "[ $i ]"; } } if ($Page != $Num_Pages) { echo " ถัดไป >> "; } ?>



: แสดงความคิดเห็น :

รายละเอียด :
โดย :