Welcome Guest, Not a member yet? Register   Sign In
What's wrong with $this->db->insert('comment', $_POST);
#1

[eluser]EEssam[/eluser]
Hello,

I just finished watching the great CI video tutorials and the guy on the tutorial said that the following line of code should be cleaned for security in real world programming or something like that:

$this->db->insert('comment', $_POST);

Doesn't CI clean the $_POST array automatically? If not, what I should do to safely insert comments using this method (I mean passing the whole array to $this->db->insert)?

Please advise.
#2

[eluser]stuffradio[/eluser]
The user docs answers tons of questions, even ones like this Wink

http://ellislab.com/codeigniter/user-gui...urity.html




Theme © iAndrew 2016 - Forum software by © MyBB