Welcome Guest, Not a member yet? Register   Sign In
$id & database issue
#2

[eluser]Matthew Pennell[/eluser]
Code:
die ($this->uri->segment(4));
If that's empty, it's the action of the form that is wrong. You'd be better off passing the ID of the entry through in the form ($_POST) anyway, rather than putting it in the (hackable) URL. Then you could just use:
Code:
$this->db->where('id', $this->input->post('id'));


Messages In This Thread
$id & database issue - by El Forum - 07-01-2007, 08:27 PM
$id & database issue - by El Forum - 07-01-2007, 11:44 PM
$id & database issue - by El Forum - 07-02-2007, 05:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB