Error with active record when "script" in query - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Error with active record when "script" in query (/showthread.php?tid=39733) |
Error with active record when "script" in query - El Forum - 03-18-2011 [eluser]Acidrain[/eluser] I use CI 2.0. I use Active Record Code: $this->db->insert('eve_characters', $data); This is the error I get. ------------------------- Quote:A Database Error Occurred Help please. Error with active record when "script" in query - El Forum - 03-20-2011 [eluser]Acidrain[/eluser] Solved. The data type was wrong in $data, so the active record built the query in the wrong way, hence no quotes in the query for strings. |