Blogger Information
Blog 43
fans 2
comment 2
visits 113222
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
个人版 - thinkphp 记不住的方法
朝游东海
Original
858 people have browsed it

tp3.2.3    增减某一字段的值

setInc('score',3); // 用户的积分加3

setDec('score'); // 用户的积分减1

QQ截图20181009144701.png


2.where组合查询

https://www.kancloud.cn/manual/thinkphp/1771

        if($name !=''){

                $where = [];

                $where['title'] = ['like','%' . $name . '%'];

                $where['company_title'] = ['like','%' . $name . '%'];

                $where['_logic'] = 'or';

                $map['_complex'] = $where;

            }


QQ截图20181130162723.png




Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post