try {
$sqe = new StoredProcExecutor();
$param = array(1);
$res = &$sqe->query('sample', $param);
while (($row = $res->fetchRow())) {
echo $row[0] . ' | ' . $row[1] . ' | ' . $row[2] . '
';
}
$qe = new QueryExecutor();
$res = &$qe->query('select chapter_id, chapter_name, product_id from tbl_chapter');
while (($row = $res->fetchRow())) {
echo $row[0] . ' | ' . $row[1] . ' | ' . $row[2] . '
';
}
} catch (Exception $e) {
echo $e->getMessage() . '
';
}