skip to Main Content

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

delete max value from column – Phpmyadmin

i have problem when executed this code in CodeIgniter it deletes all records not only the max value record although it works fine if i execute Sql query in phpmyadmin what wrong in PHP code my code: controller: $this->data->del_data_query('DELETE FROM…

VIEW QUESTION
Back To Top
Search