11-08-2009, 03:10 PM
[eluser]pisio[/eluser]
How I can fix it.
In user_passrecover I have form for submitting information for $step == 'nexstep'/
How I can run correctly mysql query ?
How I can fix it.
In user_passrecover I have form for submitting information for $step == 'nexstep'/
How I can run correctly mysql query ?
Code:
function forgotpassword()
{
$step = $this->uri->segment(3);
if($step == NULL)
{
$step = 1;
}
if($step == 'nextstep')
{
$this->db->get('user');
$this->db->where(array('name'=>$_POST['name']));
$this->db->or_where(array('name'=>$_POST['name'],'mail'=>$_POST['mail']));
$this->db->query();
$step = 2;
}
$this->load->view('user_passrecovery',array('step' => $step));
}
}