Welcome Guest, Not a member yet? Register   Sign In
$this->db->insert($_POST); Is there a way to exclude one field?
#2

[eluser]xwero[/eluser]
Code:
$fields = $_POST; // move the array to a variable to keep the post global in its original state
unset($fields['woof']);
$this->db->insert('table',$fields);
unset($fields); // not needed anymore


Messages In This Thread
$this->db->insert($_POST); Is there a way to exclude one field? - by El Forum - 04-29-2009, 03:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB