Welcome Guest, Not a member yet? Register   Sign In
CI2: data validation before inserting it in DB
#4

[eluser]pickupman[/eluser]
Well, with any app, you don't want to assume a user is feeding you something naughty. Basically any input that you can't typecast like bool or int, you will want to run through xss_clean. The $this->db->set() will make your queries safe.

If you you the active record syntax for doing your queries, CI will take care of the security stuff for you.


Messages In This Thread
CI2: data validation before inserting it in DB - by El Forum - 07-24-2010, 05:03 PM
CI2: data validation before inserting it in DB - by El Forum - 07-24-2010, 07:10 PM
CI2: data validation before inserting it in DB - by El Forum - 07-25-2010, 01:47 AM
CI2: data validation before inserting it in DB - by El Forum - 07-25-2010, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB