Viewing file: AbsentByYear.php (7.18 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( "../include/Function.php" );
/** Chart */
include ("../includes/charts.php");
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "history_absent_tb";
$Username = $valid_user;
//=== personal_tb
$query0 = " SELECT * FROM $myTable1 WHERE Username='$Username' ";
$result0 = $dbObj->runQuery($query0);
$rs0 = $dbObj->fetchArray($result0);
$Teacher_code = $rs0['Teacher_code'];
//=== salary_repot_tb
$query = " SELECT * FROM $myTable2 WHERE Teacher_code='$Teacher_code' GROUP BY Year ";
$result = $dbObj->execQuery($query);
$num = $dbObj->_numrows;
} # else
?>
ข้อมูลประวัติส่วนตัว - ประวัติข้อมูลการลารายปี
|
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|