首页上一页 1 下一页尾页 2 条记录 1/1页
php从入门到精通第27章无法显示反馈定单
发表在PHP图书答疑
2010-04-25
是否精华
是
否
版块置顶:
是
否
php从入门到精通第27.12.3,我填完定单信息后一点 提交定单 按钮后,就根本打开forminfo.php页面,请问这是怎么回事呢?
settle_chk.php页面最后几行的代码如下:
$InsertSQL = $conn->GetInsertSQL($rst,$addform);
if(false == $conn->execute($InsertSQL)){
echo "<script>alert('购买失败');history.back;</script>";
}else{
$updsql = "select * from tb_user where name = '".$_POST['uid']."'";
$updrst = $conn->execute($updsql);
$arr = array();
$arr['consume'] = $addform['total'];
$arr['shopping'] = '';
$UpdateSQL = $conn->GetUpdateSQL($updrst,$arr);
$conn->execute($UpdateSQL);
$fid = $conn->Insert_ID();
echo "<script>top.opener.location.reload();</script>";
echo "<script>window.open('forminfo.php?fid=$fid','_blank','width=600 height=450',false);window.close();</script>";
}
?>
settle_chk.php页面最后几行的代码如下:
$InsertSQL = $conn->GetInsertSQL($rst,$addform);
if(false == $conn->execute($InsertSQL)){
echo "<script>alert('购买失败');history.back;</script>";
}else{
$updsql = "select * from tb_user where name = '".$_POST['uid']."'";
$updrst = $conn->execute($updsql);
$arr = array();
$arr['consume'] = $addform['total'];
$arr['shopping'] = '';
$UpdateSQL = $conn->GetUpdateSQL($updrst,$arr);
$conn->execute($UpdateSQL);
$fid = $conn->Insert_ID();
echo "<script>top.opener.location.reload();</script>";
echo "<script>window.open('forminfo.php?fid=$fid','_blank','width=600 height=450',false);window.close();</script>";
}
?>