- 博客(6)
- 收藏
- 关注
原创 两个站之间互传数据
A 发送接收方function sumbit(){$url = "123";$data = array('id_num' => $id_num,);$result = $this->postContent($url,$data);//传递的url 和 数据 取到想要的数据$list = json_decode($result, true);//接收返回的数据时候
2016-03-22 10:43:22
278
原创 打印JS
function a(){$(".dayinTable").print({globalStyles: true,mediaPrint: false,stylesheet: null,noPrintSelector: ".no-print",iframe: true,append: null,prepend: null,manuallyCopyFormValues
2016-03-12 17:04:22
221
原创 循环update不要写判断是否存在 if(!$XX)
在循环中写update的时候 如果其中有一条记录数据相同没有更新 那么会返回false 这样循环就会自动退出 爆炸BUG
2016-01-22 17:39:28
297
原创 strtotime小笔记
$year = date("y",time());$month = date("m",time());$day = date("d",time());是可以把年月日拆分date("y-m-d", strtotime($year.'-'.$month.'-'.$day)); strtotime里面 - 得加符号引起来 不然转换会错误Y-M-D如果大写.输出
2015-12-14 16:40:43
187
原创 数据库搜索 按照时间条件
$date格式 2015-12-10$bengin = strtotime($date); //转换时间戳 select * from {$this->table} where ( time >= ".$bengin." and time < ".strtotime(" + 1 day ", $bengin).") "); //time大于$bengin时间 并且小于+1天的$beng
2015-12-10 10:04:02
388
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人