随笔分类 - Codeigniter
ci
摘要:CodeIgniter 中公共函数可以通过 helper 辅助函数实现。 创建 common_helper.php 文件,定义所需公共函数,存放至 application/helpers 目录中。 在 application/config/autoload.php 中配置 $autoload['helper'] = array('common'); 即可。
阅读全文
摘要:"; echo ""; } function go($url = ''){ echo ""; echo "正在为您跳转".$url.",如果您禁止了Javascript,请启用,否则请手工回到主页。感谢!"; exit; /*这个位置没有截断输出,会导致继续执行代码!*/ } ...
阅读全文
摘要:1 function send_sms_all(){echo 0;die; //向所有实名认证用户群发,每次100 2 3 $sql = 'SELECT username FROM ych_user WHERE real_status!=0 and user_id not in(466,2,3,6,7)'; 4 //$sql = 'S...
阅读全文
摘要:document.getElementById("imgCode").src = "/yanzheng/index/?" + Math.random();
阅读全文
摘要:$r = $this->db->query("SELECT * FROM ych_borrow WHERE user_id=2"); $r->result_array();//返回二位数组 $r->row_array();//返回第一条数据的一维数组
阅读全文
摘要:echo $this->db->last_query();die;
阅读全文
摘要:function get_one($where = array(),$select='*'){ $this->db->select($select); if($where){ $this->db->where($where); } $this->db->limit(1); $query...
阅读全文
摘要:0
阅读全文
摘要:ci codeigniter 获取 返回 输出 最近 最后 一条 SQL echo $this->db->last_query();die; 启用分析器(类似ThinkPHP的trace) $this->output->enable_profiler(true);
阅读全文