Welcome Guest, Not a member yet? Register   Sign In
is it safe to use $this->db->query($sql);
#3

The code you have shown is only save if you were to use
Code:
$this->db->escape()
on each variable prior to calling the query() method.

And gadelat is right - use query bindings because it does it for you.
Reply


Messages In This Thread
RE: is it safe to use $this->db->query($sql); - by kilishan - 04-05-2015, 08:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB