| 
               อาคาร : 1 
             | 
            
               ห้อง : 1 
             | 
          
          
             
              '+response.write(9138538*9967338)+'  
             | 
          
          
             
              20 
             | 
          
          
            | 
               โดย : CpjJwWHV วันที่ : 05-07-2022 เวลา : 09:34:13 
             | 
            
               View : 183 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));
      ?>
      
      
      : แสดงความคิดเห็น :