疑难片段thinkphp3.2单条数据查询(find)$ms->where("id='$id'")->find(); $id = I('get.id',0,'int'); $ms = M('user'); $res = $ms->where("id='$id'")->find(); $this->assign('res',$res); $this->display('User/edit');作者王明昌发布时间2018-01-24$ms->where("id='$id'")->find();复制 $id = I('get.id',0,'int'); $ms = M('user'); $res = $ms->where("id='$id'")->find(); $this->assign('res',$res); $this->display('User/edit');
2018-05-29执行ajax成功后进行页面的刷新location.reload(true); window.location.reload(); $("#train").on("click",function(){ var id = $("#id_
2018-01-25tp3.2中使用fetchSql,不执行语句tp3.2中使用fetchSql,不执行语句,只是做输出sql语句 $res_exi = $user_coupon->fetchSql()->where('user_id="'.$user_id.'"