"; }else{ while($record=mysql_fetch_array($result)){ $id_news=$record[id_news]; $type=$record[type]; $subject=$record[subject]; $detail=$record[detail]; $datestart=$record[datestart]; $datestart=displaydate($datestart); $dateend=$record[dateend]; $url=$record['link']; $file=$record['file']; $photo1=$record[photo1]; $photo2=$record[photo2]; $photo3=$record[photo3]; $hit=$record[hit]; if ($detail==""){ $linkfile='http://www.grad.ru.ac.th/Newsboard/File/'.$file; echo " "; } else { echo " "; } } } mysql_close(); ?> "; }else{ while($record=mysql_fetch_array($result)){ $id_news=$record[id_news]; $type=$record[type]; $subject=$record[subject]; $detail=$record[detail]; $datestart=$record[datestart]; $datestart=displaydate($datestart); $dateend=$record[dateend]; $url=$record['link']; $file=$record['file']; $photo1=$record[photo1]; $photo2=$record[photo2]; $photo3=$record[photo3]; $hit=$record[hit]; if ($detail==""){ $linkfile='http://www.grad.ru.ac.th/Newsboard/File/'.$file; echo " "; } else { echo " "; } } } mysql_close(); ?>
::ไม่มีข่าวประกาศเพิ่มเติม::
"; if ($file==""){ echo "$subject ...วันที่ลงข่าว $datestart..[อ่าน $hit ครั้ง]
$subject ..วันที่ $datestart..[อ่าน $hit ครั้ง]
 
::ข่าววิชาการ::
::ไม่มีข่าวประกาศเพิ่มเติม::
"; if ($file==""){ echo "$subject ...วันที่ลงข่าว $datestart..[อ่าน $hit ครั้ง]
$subject ..วันที่ $datestart..[อ่าน $hit ครั้ง]