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

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

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