时间:2021-07-01 10:21:17 帮助过:20人阅读
include 'ora/oraconn.php';
$dRootDir = '../../';
require_once($dRootDir . '_config.php');
require_once($dRootDir . 'inc/params.php');
require_once($dRootDir . 'inc/classes/db.php');
require_once($dRootDir . 'inc/classes/template.php');
require_once($dRootDir . 'inc/classes/util.php');
$tpl = new Template($gTemplate);
Util::gpc();
$sql="SELECT bpcnum_0 as BPCNUM,bpcnam_0 AS BPCNAM from bpcustomer where rownum<10";
$stmt = oci_parse($conn, $sql);
oci_execute($stmt);
$array = oci_fetch_array($stmt, OCI_BOTH);
$tpl->assign('ssss',$array);
$tpl->assign("News_CH", $array);
unset($array);
$tpl->display('smarty.tpl');
?>
{--section name=customer loop=$News_CH--} {--/section--} |