摘要: readonly disabled <input class="form-control" value="{$_GET['id']}" id="cate_name" placeholder="" name="id" required="" type="text" readonly > 能传值 <in 阅读全文
posted @ 2020-12-29 15:28 79524795 阅读(299) 评论(0) 推荐(0)
摘要: img.php页面 传值到updata页面 : {volist name="data" id="item"} <tr> <td align="center">{$item.id}</td> <td align="center">{$item.user}</td> <td align="center" 阅读全文
posted @ 2020-12-29 14:49 79524795 阅读(150) 评论(0) 推荐(0)
摘要: 添加数据 user 是表的 一个列 pwd 也是表的一个列 $re= ['user'=>$data['user'], 'pwd'=>$data['pwd']]; $r= Db::table('dyg')->insert($re); echo $r ; 阅读全文
posted @ 2020-12-29 11:30 79524795 阅读(67) 评论(0) 推荐(0)
摘要: ims_modules所有模块的名字 也就是模块信息 表 阅读全文
posted @ 2020-12-29 10:45 79524795 阅读(57) 评论(0) 推荐(0)
摘要: TP5.1下载用composer下载,如果下载太慢,请用阿里云镜像: composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ composer下载命令: composer create-proje 阅读全文
posted @ 2020-12-28 14:29 79524795 阅读(143) 评论(0) 推荐(0)
摘要: 1.增 //$result = pdo_insert($tablename,$data=array(),$replace=false); 把creat_time 的默认值 写成 CURRENT_TIMESTAMP 类型是timestamp。添加数据的时候自动生成creat_time 。不用写添加cr 阅读全文
posted @ 2020-12-21 16:49 79524795 阅读(296) 评论(0) 推荐(0)
摘要: 1.创建唯一属性的字段名(不是主键也可以添加 如下:) 创建查询 : ALTER TABLE `表名` ADD UNIQUE (`字段名`) 2.creat_time 自动生成 把creat_time 的默认值 写成 CURRENT_TIMESTAMP 类型是timestamp。添加数据的时候自动生 阅读全文
posted @ 2020-12-17 10:56 79524795 阅读(127) 评论(0) 推荐(0)
摘要: SELECT * FROM `t_tb_youxuan` where id >1 and id <1000 and cate like '%女%' ORDER BY id asc LIMIT 30 表名 条件1 条件2 模糊查询 by-id的 倒序 截取从1到20条 select * from tm 阅读全文
posted @ 2020-11-24 18:46 79524795 阅读(58) 评论(0) 推荐(0)
摘要: 1增 1.1【插入单行】 insert [into] <表名> (列名) values (列值) 例:insert into Strdents (姓名,性别,出生日期) values ('开心朋朋','男','1980/6/15') 1.2【将现有表数据添加到一个已有表】 insert into < 阅读全文
posted @ 2020-11-24 17:48 79524795 阅读(96) 评论(0) 推荐(0)
摘要: 一,json_encode() 意思是将对象,数组的数据格式转换为json格式的数据 $arr=[ 'apple'=>'1', 'orange'=>'2', 'banana'=>'3' ]; //把数组转成json格式 echo json_encode($arr); 二,json_decode() 阅读全文
posted @ 2020-11-07 13:55 79524795 阅读(289) 评论(0) 推荐(0)