2017年4月18日
摘要: 1.子查询:buildSql() 参考http://document.thinkphp.cn/manual_3_2.html#su... 阅读全文
posted @ 2017-04-18 11:46 dreamstar 阅读(77) 评论(0) 推荐(0) 编辑
  2017年4月12日
摘要: 1、配置PHP环境 phpStudy2016集成了 apache, mysql,php 安装包 双击运行,并解压到系统盘的根... 阅读全文
posted @ 2017-04-12 15:45 dreamstar 阅读(45) 评论(0) 推荐(0) 编辑
  2017年4月11日
摘要: 1、创建数据对象 根据表单数据创建数据对象 $User = M('User');// 实例化User模型$User->create(... 阅读全文
posted @ 2017-04-11 16:14 dreamstar 阅读(97) 评论(0) 推荐(0) 编辑
摘要: //分页对象 $page = new \Think\Page($total, $listRows, $... 阅读全文
posted @ 2017-04-11 15:15 dreamstar 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1.C方法(Config) 读取已有配置 获取已经设置的参数值:C(‘参数名称’) //两者等效,因为配置参数不区分大小写$mod... 阅读全文
posted @ 2017-04-11 15:07 dreamstar 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1.使用sql语句 2.连贯操作方法 select()方法要放在最后一个,其他方法没有先后顺序之分 2.1 连贯方法之alias ... 阅读全文
posted @ 2017-04-11 11:12 dreamstar 阅读(68) 评论(0) 推荐(0) 编辑
  2017年4月10日
摘要: 1.获取系统输入变量 具体参考:http://document.thinkphp.cn/manual_3_2.html#input_... 阅读全文
posted @ 2017-04-10 18:02 dreamstar 阅读(69) 评论(0) 推荐(0) 编辑
  2017年4月7日
摘要: html代码 js代码 html代码 ... 阅读全文
posted @ 2017-04-07 15:05 dreamstar 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1、数组 具体参考:http://www.runoob.com/php/php-arrays.html http://www.ru... 阅读全文
posted @ 2017-04-07 13:41 dreamstar 阅读(51) 评论(0) 推荐(0) 编辑
  2017年4月5日
摘要: 1.从表A中复制符合条件的记录,修改部分字段,再存入A表 从表t_collect_line_point查找字段collectLine_id=?1 并且字段sort在?2和?3之间的所有记录, 修改这些记录的collectLine_id字段为48,把修改后的这些记录再入该表 insert into t 阅读全文
posted @ 2017-04-05 10:33 dreamstar 阅读(79) 评论(0) 推荐(0) 编辑