Welcome Guest, Not a member yet? Register   Sign In
codeigniter show error adding time
#1

(This post was last modified: 11-24-2016, 04:10 AM by ciadmin.)

when we add data in table. flowing error show given below.
   

Reply
#2

How did you insert the data? I see that it is not escaped.
Reply
#3

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)
{
$this->db->where('id',$user_id);
$query = $this->db->get('tbl_users');
$result = $query->row();
echo $this->db->last_query(); die;
return $result;
}
Reply
#4

You need to escape the single-quote character in doesn't as found in "...cancun doesn't release..." It is messing up your string.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB