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 form_costestimates AS fc LEFT JOIN formaoffice AS f ON fc.codeId=f.codeId Where f.Flag='$Flag' and f.maNo='$maNo' ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM form_costestimates AS fc LEFT JOIN formaoffice AS f ON fc.codeId=f.codeId Where f.Flag='$Flag' and f.maNo='$maNo' ORDER BY $myTable2PK DESC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
$query11 = " SELECT * FROM form_costestimates AS fc LEFT JOIN formaoffice AS f ON fc.codeId=f.codeId Where f.Flag='$Flag' and f.maNo='$maNo' ";
$result11 = $dbObj->execQuery($query11);
$row11 = $dbObj->fetchArray($result11);
?>
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>