public function get_list($where=array(),$field="",$order = "id desc"){ $field = empty($field)?"id,dy_url,start_num,end_num,is_pay,create_time,total_num,now_num,speed,status":$field; $count=$this->where($where)->count();…
数据库的创建和sql语句增删改查 1. 载入驱动. 2. 连接数据库. 3. 操作数据库. 创建表: create table person( _id integer primary key, name varchar(20), age integer ); 加入: insert into person(name, age) values('lisi', 19); 删除: delete from person where _id = 1; 改动: update person set name =…