คณะศึกษาศาสตร์และนวัตกรรมการศึกษา
มหาวิทยาลัยกาฬสินธุ์
include "mainMenu.php"; ?>
ข่าวประชาสัมพันธ์
//echo"$select"; $no5=0; include "connect.php"; include "function.php"; $sql="select * from group_news where news_status=1 order by news_date desc,news_id desc "; $result5=mysql_db_query($dbname,$sql); $num5=mysql_num_rows($result5); $Num_Rows = mysql_num_rows($result5); $Per_Page = 30; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $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; } $sql .="LIMIT $Page_Start , $Per_Page"; $result5=mysql_db_query($dbname,$sql); ?> if($num5>0){ $file_date=date("Y-m-d"); function DateDiff($strDate1,$strDate2){ return (strtotime($strDate2) - strtotime($strDate1))/ ( 60 * 60 * 24 ); // 1 day = 60*60*24 } while ($r5=mysql_fetch_array($result5)){ $news_id=$r5[news_id]; $news_title=$r5[news_title]; $news_detail=$r5[news_detail0]; $news_picture=$r5[news_picture]; $news_access=$r5[news_access]; $news_date=displaydate($r5[news_date]); $news_date2=$r5[news_date]; $news_post=$r5[news_post]; $no5++; //ค่าที่ต้องการโชว์ ใส่ตรงนี้ครับคนหล่อ ?>
+
By เข้าชม :
$news_detail2 = mb_substr($news_detail, 0, 210, 'UTF-8'); echo"$news_detail2"; ?>
}} ?>
ทั้งหมด
รายการ //=$Num_Pages;?> if($Num_Rows<>0){?> Page : if($Prev_Page) { echo "
<< Back
"; } for($i=1; $i<=$Num_Pages; $i++){ if($i != $Page) { echo "[
$i
]"; } else { echo "
$i
"; } } if($Page!=$Num_Pages) { echo "
Next>>
"; } }//if Num_Rows ?>
include "bottomMenu.php"; ?>