posted @ 2018-03-13 09:55
程序猿的笔记
阅读(8)
推荐(0)
posted @ 2018-03-13 09:47
程序猿的笔记
阅读(17)
推荐(0)
摘要:
参照 http://www.oschina.net/code/snippet_105637_11401 的例子 $arr = array('aa' => array('bb' => array('id'=>5,'grade'=>5), 'cc' => array("name"=>'some'), '
阅读全文
posted @ 2018-03-09 20:25
程序猿的笔记
阅读(756)
推荐(0)
摘要:
sql 某一字段 数量大于1 SELECT * FROM ecm_goods_spec AWHERE ( SELECT count( * ) FROM ecm_goods_spec BWHERE A.`goods_id` = B.`goods_id` ) >1
阅读全文
posted @ 2018-03-09 20:22
程序猿的笔记
阅读(263)
推荐(0)
摘要:
<?php $a= array( array( 'ID'=> 2 ) ); $b= array( array( 'ID'=> 5656 ) ); print_r($r); //合并两个数组 以ID值 作为键 function mergeById(&$arr1,&$arr2, $key='ID') {
阅读全文
posted @ 2018-03-09 20:18
程序猿的笔记
阅读(472)
推荐(0)
摘要:
左外 右外连接 select * from tb1 left join tb2 on(tb1.id = tb2.id) select * from tb1 right join tb2 on(tb1.id = tb2.id) JOIN: 如果表中有至少一个匹配,则返回行 LEFT JOIN: 即使右
阅读全文
posted @ 2018-03-09 19:44
程序猿的笔记
阅读(208)
推荐(0)
摘要:
参考 http://laravelacademy.org/post/3279.html use Validator; $rules =array( 'proj' => 'required', 'dDate' => 'required|date', 'rDate' => 'date', ); $mes
阅读全文
posted @ 2017-12-19 10:03
程序猿的笔记
阅读(730)
推荐(0)
摘要:
下载:http://www.geekso.com/component/zendstudio-downloads/ 破解:http://www.geekso.com/ZendStudio9-key/ 注册码:34E606CF10C3E4CF202ABCEAA9B0B7A64DD2C5862A514B9
阅读全文
posted @ 2017-12-02 19:08
程序猿的笔记
阅读(625)
推荐(0)
摘要:
1 网卡说明 1)两块网卡的说明:第一块网卡为配置外网: eth0第二块网卡为配置内网: eth1(没有外网的机器也要将内网配置在第二块网卡上) 2 网卡默认配置 1)安装完成后默认配置:CentOS 6.5默认安装好之后是没有自动开启网络连接的!2) 默认IP图: 3) 默认网卡1配置文件。 文件
阅读全文
posted @ 2017-12-02 18:39
程序猿的笔记
阅读(428)
推荐(0)
摘要:
1 curl post curl -X POST http://localhost/ -d '{"data":{"name":"hheh","shortname":"US"}}' -H "Content-Type: application/json" 2 curl: (5) Could not re
阅读全文
posted @ 2017-11-30 10:12
程序猿的笔记
阅读(717)
推荐(0)