• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
codeigniter show error adding time

#1
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.