"; echo "
กรุณาทำการ Login ก่อน
execQuery($query);
$numrows = $dbObj->_numrows;
/** Paging */
$display = ( !isset ($_GET['page']) ) ? 1 : $_GET['page'];
$start = ( ($display * $limit) - $limit );
/** Paging */
if( isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable2 Where Teacher_code ='$Teacher_code' and courseId='$courseId' And costtId ='$costtId' ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable2 Where Teacher_code ='$Teacher_code' and courseId='$courseId' And costtId ='$costtId' ORDER BY $myTableFK ASC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
|