首页上一页 1 下一页尾页 1 条记录 1/1页
老师好,forminfo.php页面代码提示错误,forminfo.tpl页面无法显示
发表在PHP图书答疑
2016-09-08
是否精华
是
否
版块置顶:
是
否
老师好,forminfo.php页面代码提示错误,forminfo.tpl页面无法显示
forminfo.php页面代码:
<?php
include_once 'conn/conn.php';
include_once 'config.php';
$id = isset( $_GET['fid'])?$_GET['fid']:'';
$sql = "select * from tb_form where id = ".$id;
$rst = $conn->execute($sql);
$formarr = $rst->GetArray(); 提示这一行错误,不显示订单信息,但是后台可以看到提交的订单
$commname = explode(',',$formarr[0]['commo_name']);
$commnumber = explode(',',$formarr[0]['commo_num']);
$commagoprice = explode(',',$formarr[0]['agoprice']);
$commfold = explode(',',$formarr[0]['fold']);
$smarty->assign('formarr',$formarr[0]);
$smarty->assign('commname',$commname);
$smarty->assign('commnumber',$commnumber);
$smarty->assign('commagoprice',$commagoprice);
$smarty->assign('commfold',$commfold);
$smarty->assign('title','订单提交成功');
$smarty->display('forminfo.tpl');
?>
forminfo.php页面代码:
<?php
include_once 'conn/conn.php';
include_once 'config.php';
$id = isset( $_GET['fid'])?$_GET['fid']:'';
$sql = "select * from tb_form where id = ".$id;
$rst = $conn->execute($sql);
$formarr = $rst->GetArray(); 提示这一行错误,不显示订单信息,但是后台可以看到提交的订单
$commname = explode(',',$formarr[0]['commo_name']);
$commnumber = explode(',',$formarr[0]['commo_num']);
$commagoprice = explode(',',$formarr[0]['agoprice']);
$commfold = explode(',',$formarr[0]['fold']);
$smarty->assign('formarr',$formarr[0]);
$smarty->assign('commname',$commname);
$smarty->assign('commnumber',$commnumber);
$smarty->assign('commagoprice',$commagoprice);
$smarty->assign('commfold',$commfold);
$smarty->assign('title','订单提交成功');
$smarty->display('forminfo.tpl');
?>