"; echo "


กรุณาทำการ Login ก่อน

"; echo ""; exit(); } else { /** Configuration */ require_once( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); require_once( "../includes/FunctionDB.php" ); /** Create Database Object */ $dbObj = new DBConn; /** Config Table for This Page */ $myTable1 = "personal_tb"; $myTable2 = "history_accumu"; //### รับค่าจาก Form $Year = htmlspecialchars(trim($_POST['Year'])); $Times_total = htmlspecialchars(trim($_POST['Times_total'])); //### user_tb $checkid = 0; $sql11 = " Select * From $myTable2 Where Teacher_code='$Teacher_code' "; $result11 = mysql_query($sql11); while ($rs11 = mysql_fetch_array($result11)){ if ($rs11["Year"] == $Year){ echo ""; echo ""; echo ""; exit(); }else{ $checkid = 1; } } if ($check == 0){ //### user_tb InsertAccumu($Year,$Teacher_code,$Times_total , $Absent_code ); $dbObj->disconn(); unset($dbObj); echo ""; echo ""; echo ""; exit(); } } //} # else ?> Edit