skip to Main Content

Limit a range PHP SQL

Two parts to this question, I currently have a php script which grabs new info from themoviedb, however it times out so I'm trying to limit it in order to chunk it. I have this below snippet. $Posts = $this->db->from('posts')->where('type','serie')->all();…

VIEW QUESTION

Message: Using $this when not in object context codeigniter 3 – PHP

I want to access my database models from database.php file. ` //$ci =& get_instance(); $this->CI->session->userdata('user_id'); $this->CI->load->model('users/user_model'); $current_user = $this->CI->user_model->find($this->CI->auth->user_id()); echo $current_user->organisation; $this->CI->load->model('organisation/organisation_model'); $org = $this->CI->organisation_model->find($current_user->organisation); `

VIEW QUESTION
Back To Top
Search