php绑定数据修改

来源:互联网 发布:sql语言是什么语言 编辑:程序博客网 时间:2024/06/06 05:12

这个方式还不会,等待最后研究

例如:

        $data['update_time'] = time();
        $condition = array();
        $condition['id'] = 1;
        $condition['deleted'] = 0;

        $preQuery = PreSQL::preQuery($condition);
        $preExcute = PreSQL::preExcute($data);
        $res  = M('News')->where($preQuery->data, $preQuery->bind)->bind($preExcute->bind)->save($preExcute->data);

0 0
原创粉丝点击