2015年3月18日

CI中的数据库操作(1)

摘要: 数据库中的访问 修改配置文件 application/config/database.php 将数据库访问对象,装载到超级对象的属性中$this->db $this->load->database(); $res=$this->db->query($sql);//返回对象 ... 阅读全文

posted @ 2015-03-18 22:31 ziyi_ang 阅读(126) 评论(0) 推荐(0) 编辑

CI超级对象中的input输入类

摘要: $this->input 是CI_Input类的实例system/core/Input.php CI_Input类提供的方法: $this->input->post('username');//$_POST['username']; $this->input->server('DOCUMEN... 阅读全文

posted @ 2015-03-18 22:12 ziyi_ang 阅读(125) 评论(0) 推荐(0) 编辑

导航