• 技术文章 >后端开发 >php教程

    彭和平垃圾回收机制,该怎么处理

    2016-06-13 11:42:11原创572

    彭和平垃圾回收机制
    有一个功能:
    删除某些内容后,能够恢复原有的内容。这是什么原理?
    是不是可以把你想删除的东西存放到另一个表里面。
    然后如果你想恢复的话从另一个表里面把它在更新下?
    $sql="delete from `#@__skupdate_class` where id=".$id."";
    $bool = $dsql->ExecuteNoneQuery($sql);
    if(!$bool)
    {
    ShowMsg("课程信息回收站删除失败",'-1');
    exit();
    }else{
    ShowMsg("课程信息回收站删除成功",'update_class.php?dopost=recycling&page='.$page.'');
    exit();
    }

    $sql="Update `#@__skupdate_class` set state=1 where id=".$id."";
    $bool = $dsql->ExecuteNoneQuery($sql);
    if(!$bool)
    {
    ShowMsg("课程信息恢复失败",'-1');
    exit();
    }else{
    ShowMsg("课程信息恢复成功",'update_class.php?dopost=recycling&page='.$page.'');
    exit();
    }

    这是几个意思明明已经删除了啊?
    delete from `#@__skupdate_class` where id=".$id."

    求解

    相关文章推荐

    • 聊聊PHP escapeshellarg函数使用的中文问题• PHP原生类的总结分享• 分享PHP函数使用小工具(附代码示例)• PHP安全编码总结(经验分享)• 非常全面!PHP常见漏洞代码总结!
    1/1

    PHP中文网