首页 >后端开发 >php教程 >The user cannot be altered by a client without the session.

The user cannot be altered by a client without the session.

WBOY
WBOY原创
2016-06-06 20:27:06873浏览

public function edit_Q_zhanghaoguanli_info($id){

<code>    if(isset($id) && !empty($id)){
        $qiuzhi = new AVQuery("_User");
        $qiuzhi = $qiuzhi -> get($id);
        $qiuzhi -> set('isTest',true);
        $qiuzhi -> save();
        echo "<script>window.location='/manage/get_Q_zhanghaoguanli_info';</script>";
        return;
    }
}
</code>

求救 这样写有错吗????

回复内容:

public function edit_Q_zhanghaoguanli_info($id){

<code>    if(isset($id) && !empty($id)){
        $qiuzhi = new AVQuery("_User");
        $qiuzhi = $qiuzhi -> get($id);
        $qiuzhi -> set('isTest',true);
        $qiuzhi -> save();
        echo "<script>window.location='/manage/get_Q_zhanghaoguanli_info';</script>";
        return;
    }
}
</code>

求救 这样写有错吗????

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn