首頁 >後端開發 >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:06861瀏覽

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