帝国商城模型订单提交成功后设置返回页面
修改e/class/ShowSysFun.php  //取得用户信息        $userid=(int)getcvar('mluserid');        $username=RepPostVar(getcvar('mlusername'));    &……
修改e/class/ShowSysFun.php
//取得用户信息 $userid=(int)getcvar('mluserid'); $username=RepPostVar(getcvar('mlusername')); if($userid) { $rnd=RepPostVar(getcvar('mlrnd')); $user=$empire->fetch1("select ".$user_userid.",".$user_money.",".$user_userfen." from ".$user_tablename." where ".$user_userid."='$userid' and ".$user_rnd."='$rnd' limit 1"); if(!$user[$user_userid]) { printerror("MustSingleUser","history.go(-1)",1); } } $location=" ../ShopSys/buycar/";
注:location是修改部分
- 上一篇
帝国序号标签补零,位数不足前面加0补足
帝国灵动标签为<?=$bqno?>输出效果 1 2 3 4 5 6 7 8 9 10 11 12补零后写法<?=sprintf("%02d", $bqno)?>输出效果 01 02 03 04 05 06 07 08 09 10 11 12补俩个零写法<?=sprintf("%03d", $bqno)?>输出效果 001 002 003
- 下一篇
帝国cms网站管理系统扩展SQL程序编写介绍
本文目录例1:连接MYSQL程序。(a.php)例2:操作MYSQL数据的程序。(b.php)例3:读MYSQL数据的程序。(c.php)1、执行SQL函数2、循环读取数据库记录函数3、读取单条数据库记录函数:(不循环)4、统计SQL查询记录数函数5、统计SQL