Welcome Guest, Not a member yet? Register   Sign In
[newbie] $this->db->insert(); problem
#2

[eluser]xwero[/eluser]
It's very tempting to add POST to the fields parameter but you have to be aware there could be other fields in the form that are not for the database.
So it's best to hardcode the values you need for the fields or you could use the $this->db->list_fields() method to filter the POST global.


Messages In This Thread
[newbie] $this->db->insert(); problem - by El Forum - 09-25-2008, 06:41 AM
[newbie] $this->db->insert(); problem - by El Forum - 09-25-2008, 06:54 AM
[newbie] $this->db->insert(); problem - by El Forum - 09-25-2008, 07:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB