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

Another solution too (automactically protected):
PHP Code:
$sql "INSERT INTO tbl_employee (firstname, secondname, age) VALUES(?, ?,?)";
 
$query $this->db->query($sql, array('firstname' => $var1'secondname' => $var2'age' => $var3)); 
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB