'qa_standard_tb' */ $query = " SELECT * FROM $myTable2 WHERE Stand_code='$Stand_code' "; $result0 = $dbObj->execQuery($query); $rss = $dbObj->fetchArray($result0); /** Paging */ $page = $_GET['page']; if( $page == "" ) { $page = 1; } /** จำนวนข้อมูล ต่อ 1 หน้า */ $perpage = $_REQUEST['perpage']; if( $perpage == "" ) { $perpage = 10; } $param = "Stand_code=$Stand_code"; ?>
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 $myTable WHERE Stand_code='$Stand_code' ORDER BY $OrderBy $ASCDESC "; } elseif( !isset($_GET['OrderBy']) ) { $query = " SELECT * FROM $myTable WHERE Stand_code='$Stand_code' ORDER BY $myTableFK ASC "; } $query .= " LIMIT $start, $limit "; $result = $dbObj->execQuery($query); ?> |