欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

phpcms的增删改查操作整理_PHP教程

程序员文章站 2022-04-20 19:10:26
...
一、查

①select($where = '', $data = '*', $limit = '', $order = '', $group = '', $key='')

phpcms的增删改查操作整理_PHP教程
phpcms的增删改查操作整理_PHP教程

②listinfo($where = '', $order = '', $page = 1, $pagesize = 20, $key='', $setpages = 10,$urlrule = '',$array = array(), $data = '*')

phpcms的增删改查操作整理_PHP教程
phpcms的增删改查操作整理_PHP教程

③get_one($where = '', $data = '*', $order = '', $group = '')

phpcms的增删改查操作整理_PHP教程
phpcms的增删改查操作整理_PHP教程

④query($sql)

二、增

①insert($data, $return_insert_id = false, $replace = false)

phpcms的增删改查操作整理_PHP教程
phpcms的增删改查操作整理_PHP教程

②insert_id()

三、改

①update($data, $where = '')

phpcms的增删改查操作整理_PHP教程
'phpcms','password'=>'123456')]
     *                        数组的另一种使用array('name'=>'+=1', 'base'=>'-=1');程序会自动解析为`name` = `name` + 1, `base` = `base` - 1
     * @param $where         更新数据时的条件,可为数组或字符串
     * @return boolean
     
phpcms的增删改查操作整理_PHP教程

四、删

① delete($where)

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/752220.htmlTechArticle一、查 ①select($where = '', $data = '*', $limit = '', $order = '', $group = '', $key='') ②listinfo($where = '', $order = '', $page = 1, $pagesize = 20, $key='', $setpages =...
相关标签: aspnet 软件编程