07 2016 档案

摘要:最近又学到了一些新技巧,和大家分享下。 第一、当一个表单有很大内容时,我们在表单处理页面接收这些表单的值的时候就会重复 接收,于是就有了自动过滤的解决之法(核心就是把数据表里需要的字段接收) 首先:我们要准备数据库的字段,于是就有两个方法 一、 从表里去获取:使用 'desc table' + my 阅读全文
posted @ 2016-07-26 17:14 yangboom 阅读(1106) 评论(0) 推荐(0) 编辑
摘要:#关于字符串的测试 //$v = '00'; // $x2 = $v+1; //echo $v&1; //echo($v == 1)?'相等':'不相等'; //结论:对于字符串的以0开头后面接数字的 在进行运算(算术、逻辑、判断相等)时都会先转化成数值型 #关于数组的测试 /*$i = '01'; 阅读全文
posted @ 2016-07-23 19:27 yangboom 阅读(197) 评论(0) 推荐(0) 编辑
摘要:正则表达式案例--前端检验表单2--onsubmit 用户注册 用户名: 用户... 阅读全文
posted @ 2016-07-22 20:52 yangboom 阅读(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 yangboom 阅读(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 yangboom 阅读(3276) 评论(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 yangboom 阅读(2456) 评论(0) 推荐(0) 编辑
摘要:html代码 javascript: jquery: 阅读全文
posted @ 2016-07-21 02:55 yangboom 阅读(864) 评论(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 yangboom 阅读(347) 评论(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 yangboom 阅读(1245) 评论(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 yangboom 阅读(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 yangboom 阅读(722) 评论(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 yangboom 阅读(550) 评论(0) 推荐(0) 编辑
摘要:页面样式代码: <!doctype html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/><title>dom-浮动的div</title><script src="id.js" typ 阅读全文
posted @ 2016-07-17 22:29 yangboom 阅读(545) 评论(0) 推荐(0) 编辑
摘要:首先写一个小页面;页面需要一个div 这个div就是盒子,然后在div里在包含一个子div 这个子div就包含一张小球的图片 代码: <!doctype html> <html> <head><meta http-equiv="content-type" content="text/html;cha 阅读全文
posted @ 2016-07-17 21:56 yangboom 阅读(607) 评论(0) 推荐(0) 编辑
摘要:第一点、对于apache + php + mysql 的版本的正确选择 问题:网上有些教学视频已经很早了,然后很多人照着来,完全和视频里讲的一样,但是结果就是搭建不成功。 出现问题原因:三件套的版本选择不正确,比如有的php版本里就没有对应的Apache模块(形如:php5apache2_2.dll 阅读全文
posted @ 2016-07-16 01:18 yangboom 阅读(1889) 评论(0) 推荐(0) 编辑
摘要:<html> <head> <title>js乌龟抓小鸡游戏 </title> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <script type="text/javascript"> //响应用户的点击按 阅读全文
posted @ 2016-07-10 19:29 yangboom 阅读(429) 评论(0) 推荐(0) 编辑

TOP
点击右上角即可分享
微信分享提示