Hi @DelvinPaul: I hope your problem is resolved. Just in case, if you don’t solve it, try debugging your request internally changeNamewith
log_message('info','Query: '.$this->db->last_query());
log_message('info','Result Returned: '.print_r($new,true));
put these instructions after the following line in your changeName function:
$new = $this->db->select('name')->where('another_table.id', $row->id)->get('another_table')->result();
And do not forget to change $config['log_threshold'] = 3;in your configuration file. After debugging, update your question for clarity so that we can answer.
source
share