摘要: debugx5.qq.com 阅读全文
posted @ 2017-01-05 15:13 Rakishly 阅读(88) 评论(0) 推荐(0) 编辑
摘要: function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)r 阅读全文
posted @ 2017-01-03 11:46 Rakishly 阅读(154) 评论(0) 推荐(0) 编辑
摘要: <div id="allmap" style="height:300px"></div> <input type="hidden" id="lng" name="lng" value="" /><input type="hidden" id="lat" name="lat" value="" /> 阅读全文
posted @ 2016-08-25 17:33 Rakishly 阅读(428) 评论(0) 推荐(0) 编辑
摘要: $ch = curl_init(); $curl_opt = array(CURLOPT_URL, 'http://www.example.com/backend.php', CURLOPT_RETURNTRANSFER, 1, CURLOPT_TIMEOUT, 1,); curl_setopt_a 阅读全文
posted @ 2016-06-22 11:19 Rakishly 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 对二维数组中的 age和name 项排序,name相同的按照age排序。 需要用到PHP的内置函数 array_multisort() $arr = array( 0 =>array('name' => 'godlike','age' => 18), 1=>array('name' => 'caom 阅读全文
posted @ 2016-06-08 17:53 Rakishly 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 查看event是否开启: show variables like '%sche%'; 将事件计划开启: set global event_scheduler=1; 关闭事件任务: alter event e_test ON COMPLETION PRESERVE DISABLE; 开户事件任务: a 阅读全文
posted @ 2016-06-08 17:20 Rakishly 阅读(193) 评论(0) 推荐(0) 编辑
摘要: select * from table where datediff('2016-06-06',FROM_UNIXTIME(‘时间字段’, '%Y-%m-%d'))<=7 AND FROM_UNIXTIME('时间字段', '%Y-%m-%d') < date('2016-06-06'); FROM 阅读全文
posted @ 2016-06-07 16:35 Rakishly 阅读(513) 评论(0) 推荐(0) 编辑