All pastes #826719 Raw Edit

Venky

public php v1 · immutable
#826719 ·published 2007-12-21 11:41 UTC
rendered paste body
try {	$sqe = new StoredProcExecutor();	$param = array(1);	$res = &$sqe->query('sample', $param);	while (($row = $res->fetchRow())) {		echo $row[0] . '&nbsp;|&nbsp;' . $row[1] . '&nbsp;|&nbsp;' . $row[2] . '<br>';	}	$qe = new QueryExecutor();	$res = &$qe->query('select chapter_id, chapter_name, product_id from tbl_chapter');	while (($row = $res->fetchRow())) {		echo $row[0] . '&nbsp;|&nbsp;' . $row[1] . '&nbsp;|&nbsp;' . $row[2] . '<br>';	}} catch (Exception $e) {	echo $e->getMessage() . '<br>';}