อาคาร : 1
|
ห้อง : 1
|
1
|
20I6ugLqXU')); waitfor delay '0:0:15' --
|
โดย : QPbmCRVM วันที่ : 13-10-2024 เวลา : 04:17:26
|
View : 3 Reply : 0
|
$num_com = 0;
$reply = "select * from classroom_repairing_reply where NotifyID = '$url_recieve' ";
$qryReply = $conn->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 |
}
?>
หน้า :
if ($Prev_Page) {
echo "
<< ก่อนหนัา ";
}
for ($i = 1; $i <= $Num_Pages; $i++) {
if ($i != $Page) {
echo "
$i ";
} else {
echo "
[ $i ]";
}
}
if ($Page != $Num_Pages) {
echo "
ถัดไป >> ";
}
?>
$url_send = base64_encode(base64_encode($url_recieve));
?>
: แสดงความคิดเห็น :