"; 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 edu_integration et , edu_service_tb es WHERE es.outreacId= et.outreacId and et.Research_code='$Research_code' and et.outreacId ='$outreacId' ORDER BY $OrderBy $ASCDESC "; } elseif( !isset($_GET['OrderBy']) ) { $query = " SELECT * FROM edu_integration et , edu_service_tb es WHERE es.outreacId= et.outreacId and et.Research_code='$Research_code' and et.outreacId ='$outreacId' ORDER BY $myTableFK DESC "; } $query .= " LIMIT $start, $limit "; $result = $dbObj->execQuery($query); ?> |