$Num_Pages) || ($Page<0)) print "
จำนวน $Page มากกว่า $Num_Pages ยังไม่มีข้อความ
"; $sql .= " Order by id LIMIT $Page_start , $Per_Page"; $result = @mysql_query($sql); if($Page!="" && $Page!="1") { $loopon=$Per_Page*($Page-1); } else { $loopon=0; } While($row= @mysql_fetch_array($result)){ $loopon=$loopon+1; $contents = $row["content"]; $datecreates = $row["datecreate"]; $pic = $row["pic"]; $strurlyoutube2=str_replace("watch?v=","v/",$row["urlyoutube"]); $ysd=substr($datecreates,0,4); $msd=substr($datecreates,5,2); $dsd=substr($datecreates,8,2); $tms=substr($datecreates,11,8); $showdates=$dsd.'/'.$msd.'/'.($ysd+543)." ".$tms; ?>
หัวข้อ :




โดย :    IP:
 
    ความคิดเห็นที่




    จากคุณ :  '; // print_r($user_info['groups']); //echo ''; //echo $user_info['groups'][0]; ?> - [ ]   IP:


1) { if($Prev_Page) { echo " ‹ หน้าแรก"; echo " "; } else { echo " ‹ หน้าแรก"; echo " "; } $chumpages=$Page-5; if($chumpages>0) { $iloop=$chumpages; } else { $iloop=1; } $endpages=$Page+5; if($endpages>$Num_Pages) { $endpages=$Num_Pages; } for($i=$iloop; $i<=$endpages; $i++){ if($i != $Page) { echo " $i"; } else { echo " $i"; } } if($Page!=$Num_Pages) { echo ""; echo " หน้าสุดท้าย ›"; } else { echo " "; echo "หน้าสุดท้าย ›"; } } ?>