Welcome Guest, Not a member yet? Register   Sign In
Escaping queries
#1

[eluser]VivaUkraine[/eluser]
Hello!
I've a very basic quastion i think...

So i have some form with to text fields, and i this form data is inserting to database..

like this:

Code:
$this->db->insert('news',$_POST);

Does the CI automaticly escaping $_POST data? Or i need to use somethink like:

Code:
$this->db->set('title',$this->db->escape($_POST['title']));

for the each field ?


Messages In This Thread
Escaping queries - by El Forum - 06-23-2007, 11:31 AM
Escaping queries - by El Forum - 06-23-2007, 08:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB