CodeIgniter Forums

Full Version: codeigniter show error adding time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when we add data in table. flowing error show given below.

How did you insert the data? I see that it is not escaped.
Try to get last query and direct hit mysql query in database than you can easily get what exact problem in that.

function getUserDataById($user_id)
$query = $this->db->get('tbl_users');
$result = $query->row();
echo $this->db->last_query(); die;
return $result;
You need to escape the single-quote character in doesn't as found in "...cancun doesn't release..." It is messing up your string.