2017年3月23日

摘要: $upload = new IUpload('10240000',array('jpg','gif','png')); $dir = "upload/dian"; $upload->setDir($dir); $upload->execute(); 阅读全文
posted @ 2017-03-23 20:11 想她 阅读(119) 评论(0) 推荐(0)

2017年3月18日

摘要: Javascript 图片放大代码 阅读全文
posted @ 2017-03-18 11:31 想她 阅读(78) 评论(0) 推荐(0)

2017年3月17日

摘要: //php后台 $starttimestr = $arr[0]['forea_time']; $endtimestr = $arr[0]['end_time']; $data['starttime'] = strtotime($starttimestr); $data['endtime'] = strtotime($endtimestr); ... 阅读全文
posted @ 2017-03-17 20:04 想她 阅读(104) 评论(0) 推荐(0)
 
摘要: $tb_goods = new IQuery('goods as g'); $tb_goods->join='left join miao as m on m.goods_id=g.id'; $arr = $tb_goods->find(); $this->list = $arr; 阅读全文
posted @ 2017-03-17 19:59 想她 阅读(129) 评论(0) 推荐(0)
 
摘要: $now_time){ echo "当前不在考试的时间范围内!"; exit; } $remain_time = $end_famate_time-$now_time; //剩余的秒数 $remain_hour = floor($remain_time/(60*60)); //剩余的小时 $remain_minute = floor(($r... 阅读全文
posted @ 2017-03-17 13:29 想她 阅读(869) 评论(0) 推荐(0)
 
摘要: 实例讲解之前,先来介绍几个核心函数: mktime 函数 mktime() 函数返回一个日期的 Unix 时间戳。 参数总是表示 GMT 日期,因此 is_dst 对结果没有影响。 参数可以从右到左依次空着,空着的参数会被设为相应的当前 GMT 值。 语法:mktime(hour,minute,se 阅读全文
posted @ 2017-03-17 11:34 想她 阅读(223) 评论(0) 推荐(0)
 
摘要: 用PHP实现mysql锁表 mysql锁表,是利用相关的SQL语句 //执行SQL语句 锁掉userinfo表 $sql = "LOCK TABLES userinfo WRITE"; //表的WRITE锁定,阻塞其他所有mysql查询进程 $Database->execute($sql); //执 阅读全文
posted @ 2017-03-17 10:10 想她 阅读(177) 评论(0) 推荐(0)
 
摘要: redirect('hello'); } public function liu() { $login_info = $_COOKIE['iweb_user_id']; if (empty($login_info)) { echo ""; } else { $goods_re... 阅读全文
posted @ 2017-03-17 09:56 想她 阅读(161) 评论(0) 推荐(0)
 
摘要: exists()){ return true; } //建立表 $data = array( "comment" => self::name(), "column" => array( "id" => array("type" => "int(... 阅读全文
posted @ 2017-03-17 09:49 想她 阅读(229) 评论(0) 推荐(0)

2017年3月16日

摘要: //秒杀模拟练习public function sha(){ $testObj = new IModel("goodss"); $arr = $testObj->query(); $this->list = $arr; $this->redirect('sha');}public function 阅读全文
posted @ 2017-03-16 11:07 想她 阅读(137) 评论(0) 推荐(0)