上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 63 下一页
该文被密码保护。 阅读全文
posted @ 2014-08-18 17:10 麦田守望者~ 阅读(2) 评论(0) 推荐(0)
摘要: //设置编码格式 header("Content-Type:text/html;cahrset=urf-8"); 阅读全文
posted @ 2014-08-15 10:29 麦田守望者~ 阅读(139) 评论(0) 推荐(0)
摘要: http://localhost/ci_tuangou/index.php/home/index/index?gid=2echo 'gid='. $this->input->get('gid');结果:gid=2 阅读全文
posted @ 2014-08-15 09:09 麦田守望者~ 阅读(367) 评论(0) 推荐(0)
摘要: var_dump($_SERVER); 阅读全文
posted @ 2014-08-14 16:58 麦田守望者~ 阅读(282) 评论(0) 推荐(0)
摘要: CI默认过滤了$_GET需要传递get参数时一般直接 /参数一/参数二详见手册说明:http://codeigniter.org.cn/user_guide/general/controllers.html#passinguri但是有时候需要传递很长的复杂的url,比如常用的 backURL=htt... 阅读全文
posted @ 2014-08-14 16:52 麦田守望者~ 阅读(197) 评论(0) 推荐(0)
摘要: 1234$str_tag="";$s=$_POST['goods_server_name'];for($i=0;$i<count($s);$i++){ if($i==0){ $str_tag = $s[$i]; }else{ $str_tag = $str_tag .",".$s[$... 阅读全文
posted @ 2014-08-14 15:16 麦田守望者~ 阅读(373) 评论(0) 推荐(0)
摘要: $str="aa,bb,cc,ddd,eee";if(strstr($str,‘cc’)){echo '包含';} 阅读全文
posted @ 2014-08-14 14:49 麦田守望者~ 阅读(148) 评论(0) 推荐(0)
摘要: #显示列表 public function index(){ //载入分页类 $this->load->library('pagination'); //每页显示的条数 $perPage=11; /****配置分页**... 阅读全文
posted @ 2014-08-14 11:05 麦田守望者~ 阅读(458) 评论(0) 推荐(0)
摘要: 方法一:$this->db->query("sql 语句"); 直接写sql语句方法二: #多表关联查询 $data=$this->db->from('goods') ->join('shop','shop.shopid=goods.shopid') ... 阅读全文
posted @ 2014-08-14 10:57 麦田守望者~ 阅读(5321) 评论(0) 推荐(0)
摘要: 假一赔十 ... 阅读全文
posted @ 2014-08-14 09:14 麦田守望者~ 阅读(4498) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 63 下一页