CodeIgniter Forums
Database Question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Database Question (/showthread.php?tid=2407)



Database Question - El Forum - 08-03-2007

[eluser]bradcis[/eluser]
I am wondering if I put and/or take information from the database, do I need to use the addslashes() or stripslashes() functions or is the data already ran through them via $this->db->query();

Thank you much,

Brad


Database Question - El Forum - 08-03-2007

[eluser]Glen Swinfield[/eluser]
You will probably need to addslashes() yourself. If using mysql use mysql_real_escape_string(). Check the php manual for further info on the function.

$this->db->query(); does nothing with the data passed to it other than execute a mysql_query() around it.


Database Question - El Forum - 08-03-2007

[eluser]bradcis[/eluser]
Thank you much, Codepat! =)

Have a great day,

Brad