上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: 正则表达式案例--前端检验表单2--onsubmit 用户注册 用户名: 用户... 阅读全文
posted @ 2016-07-22 20:52 wanzij 阅读(190) 评论(0) 推荐(0) 编辑
摘要: =100 && $rip 0,'name'=>'123833'), array('id'=>0,'name'=>'aaa'), array('id'=>0,'name'=>'albabaababa'), array('id'=>0,'name'=>'12356'), array('id'=>0,'n... 阅读全文
posted @ 2016-07-22 16:55 wanzij 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 前两天学习到的知识,挺有用的,因此这里做个分享 function AutoCreateSql($tab,$dataarr,$mode='insert',$where=' 1 and 1 limit 1'){ //形如 insert into test(t1,t2) values('v1','v2') 阅读全文
posted @ 2016-07-21 23:54 wanzij 阅读(3277) 评论(0) 推荐(0) 编辑
摘要: $area = array( array('id'=>1,'name'=>'安徽','parent'=>0), array('id'=>2,'name'=>'海淀','parent'=>7), array('id'=>3,'name'=>'濉溪县','parent'=>5), array('id'= 阅读全文
posted @ 2016-07-21 23:28 wanzij 阅读(2458) 评论(0) 推荐(0) 编辑
摘要: html代码 javascript: jquery: 阅读全文
posted @ 2016-07-21 02:55 wanzij 阅读(865) 评论(0) 推荐(0) 编辑
摘要: class sqlHelper{ private $conn; private $host = 'localhost'; private $user = 'root'; private $pwd = 'root'; private $db; public function __construct($ 阅读全文
posted @ 2016-07-20 18:20 wanzij 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 给定省市地区数组如下: $area = array( array('id'=>1,'name'=>'安徽','parent'=>'0'), array('id'=>2,'name'=>'海淀','parent'=>'7'), array('id'=>3,'name'=>'濉溪县','parent'= 阅读全文
posted @ 2016-07-20 16:54 wanzij 阅读(1246) 评论(0) 推荐(1) 编辑
摘要: 方法一代码: path = './a/b/c/d/e/f'; $path_arr = explode('/',$path);//得到数组array('.','a','b','c','d','e','f'); for($i=0;$i<count($path_arr);$i++){ static $di 阅读全文
posted @ 2016-07-20 00:57 wanzij 阅读(676) 评论(0) 推荐(0) 编辑
摘要: function deldir($path){ if(!is_dir($path)){ return false; } $dh = opendir($path); while(($file = readdir($dh)) !== false){ if($file != '.' && $file != 阅读全文
posted @ 2016-07-18 22:36 wanzij 阅读(723) 评论(0) 推荐(0) 编辑
摘要: 方法一: function mk_dir($path_arr,$root){ if(!empty($path_arr)){ static $path;//每次保存上次调用的值 $path .= '/'.$path_arr[0]; if(!is_dir($path)){ if( mkdir($root 阅读全文
posted @ 2016-07-18 22:29 wanzij 阅读(550) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页
TOP