"; echo " ".$row[headline]."
ข่าวนี้ถึง:"; echo $row[group_desc].""; echo ""; echo "

"; echo $row[body]; echo "
"; if($row[attached_file]!="") { echo "รายละเอียดเพิ่มเติม $row[attached_file]"; } echo "
"; if($row[added_url]!="http://"){ echo "ดูรายละเอียดเพิ่มเติม==> ที่นี่"; } echo ""; echo ""; echo ""; echo " ประกาศโดย(Login) "; echo $row[post_by]; $expire_date=$row[expire_date]; $day_of_month=substr($expire_date,6,2); $thaimonth = array ("01"=>"มกราคม", "02"=>"กุมภาพันธ์", "03"=>"มีนาคม", "04"=>"เมษายน", "05"=>"พฤษภาคม", "06"=>"มิถุนายน", "07"=>"กรกฎคม", "08"=>"สิงหาคม", "09"=>"กันยายน", "10"=>"ตุลาคมคม", "11"=>"พฤศจิกายน", "12"=>"ธันวาคม"); $month=" ".$thaimonth[substr($expire_date,4,2)]." "; $year=substr($expire_date,0,4); echo "    ข่าวแสดงถึงวันที่ ".((int)$day_of_month).$month.((int)$year+543); echo "    มีผู้เปิดอ่านแล้วประมาณ "; echo $row[access_time]; echo " ครั้ง "; echo ""; echo ""; echo ""; //if($row[last_remote_addr]!=$REMOTE_ADDR){ $sql_count_read="update news_4_campus set access_time=(access_time+1), last_remote_addr='".$REMOTE_ADDR."' where news_id=".$HTTP_GET_VARS['news_id']; $result=mysql_db_query("allpurpose", $sql_count_read, $connect_id); //} } else { echo "connect fail"; } ?>