$this->db->escape() vs $this->db->escape_str() |
[eluser]Evollution[/eluser]
i dont understand when i shoud use $this->db->escape_str() and when $this->db->escape() what is the diffrence ?
[eluser]Evollution[/eluser]
for example my controller Code: function create(){ and my model Code: function add_record($data){ I done it corectly ?
[eluser]guidorossi[/eluser]
You don't need to escape the data if you're using Active Record because "All values are escaped automatically producing safer queries." http://ellislab.com/codeigniter/user-gui...tml#insert |
Welcome Guest, Not a member yet? Register Sign In |