Code snippet for this example:
$this->db->select('status');
$this->db->from('tbl_user');
$this->db->where('user_id', $user_id);
$results = $this->db->get();
echo $this->db->last_query();
The last call to last_query() will output the actual SQL executed.
No comments:
Post a Comment