Viewing file: InsertSalaryType.php (2.96 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
";
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;
//### รับค่าจาก Form
$SalaryId = htmlspecialchars(trim($_POST['SalaryId']));
$Detail = htmlspecialchars(trim($_POST['Detail']));
$SalaryStatus = htmlspecialchars(trim($_POST['SalaryStatus']));
//### user_tb
$checkid = 0;
$sql11 = " Select * From salary_type_tb ";
$result11 = mysql_query($sql11);
while ($rs11 = mysql_fetch_array($result11)){
if ($rs11["SalaryId"] == $SalaryId){
echo "";
echo "";
echo "";
exit();
}else{
$checkid = 1;
}
}
if ($check == 0){
InsertSalaryType($SalaryId,$Detail,$SalaryStatus,$Flag);
$dbObj->disconn();
unset($dbObj);
echo "";
echo "";
echo "";
exit();
}
//InsertSalaryType($SalaryId,$Detail,$SalaryStatus,$Flag);
/** Close the Database */
//$dbObj->disconn();
/** Unset Class */
//unset($dbObj);
/** Output */
//if( $result1 ) {
//echo "";
/*echo "";
echo "";
//echo "";
exit();
*/
}
//} # else
?>
Edit Password
bool(false)
|