In CodeIgniter, how can I avoid sql injection? Is there any method to set in config file to avoid sql injection? I am using this code for selecting values:
you can use
$this->db->escape()
method..
$sql = "INSERT INTO table (title) VALUES(".$this->db->escape($omgomg).")";
other methods are listed here.
http://codeigniter.com/user_guide/database/queries.html