#summary Demonstration of AplConnection, AplQuery {{{ open("select * from my_table where my_query_criteria=34",$rowsPerPage,$activePage); /* Display column names and values for each row in our query result */ do{ $rowData = $qryObj->fetch(); foreach( $rowData as $key => $value ) echo $key." : ".$value."
"; }while( $qryObj->nextRecord() ); $qryObj->close(); /* Catch if any exception has thrown */ }catch(Exception $e) { if( $e->getCode() == EX_DB_NO_ROWS ) echo "No Rows Found In Table"; else echo $e->getMessage(); } ?> }}}