"); $row_editor_slideRS = mysql_fetch_assoc($editor_slideRS); $totalRows_editor_slideRS = mysql_num_rows($editor_slideRS); $query_show_slideRS = "SELECT * FROM ".$_SESSION['$tbl_name']."".allbum." AS eab LEFT JOIN ".$_SESSION['$tbl_name']."".act." AS eda ON eab.NewsID = eda.photoallbum WHERE eda.photoallbum = '$colname_editor_slideRS' ORDER BY eda.NewsID ASC"; $show_slideRS = mysql_query($query_show_slideRS, $schoolsmile) or die (""); $row_show_slideRS = mysql_fetch_assoc($show_slideRS); $totalRows_show_slideRS = mysql_num_rows($show_slideRS); $query_static_show = "SELECT static FROM ".$_SESSION['$tbl_name']."".allbum." WHERE NewsID = '$colname_editor_slideRS' "; $static_show = mysql_query($query_static_show, $schoolsmile) or die (""); $row_static_show = mysql_fetch_assoc($static_show); $totalRows_static_show = mysql_num_rows($static_show); $row_static_show['static'] = $row_static_show['static'] + 1; $query_static_add = "UPDATE ".$_SESSION['$tbl_name']."".allbum." SET static=".$row_static_show['static']." WHERE NewsID = '$colname_editor_slideRS' "; $static_add = mysql_query($query_static_add, $schoolsmile) or die (""); mysql_select_db($database_schoolsmile, $schoolsmile); $query_SchoolRS = "SELECT admin.*,".$_SESSION['$tbl_name']."".allbum.".school_id FROM admin,".$_SESSION['$tbl_name']."".allbum." WHERE admin.school_id = '".$row_editor_slideRS['school_id']."' "; $SchoolRS = mysql_query($query_SchoolRS, $schoolsmile) or die (""); $row_SchoolRS = mysql_fetch_assoc($SchoolRS); $totalRows_SchoolRS = mysql_num_rows($SchoolRS); $query_SchoolRS1 = "SELECT * FROM school WHERE schoolid = '57000001'"; $SchoolRS1 = mysql_query($query_SchoolRS1, $schoolsmile) or die(mysql_error()); $row_SchoolRS1 = mysql_fetch_assoc($SchoolRS1); $totalRows_SchoolRS1 = mysql_num_rows($SchoolRS1); ?> สำนักงานศึกษาธิการภาค 16 ข่าวศธภ. ข่าวการศึกษา ข่าวโรงเรียน ข่าวสพท. ข่าวสำนักงานเขตพื้นที่การศึกษา ประถมศึกษา มัธยมศึกษา ครูและบุคลากรทางการศึกษา

สำนักงานศึกษาธิการภาค 16

[ มีผู้อ่านข่าวนี้ : ".$row_static_show['static']." ครั้ง ]"; ?> ยังไม่ออนไลน์"; } ?>


0) { // Show if recordset not empty do { ?> " data-lightbox="photo-news">">

โดย : /