Welcome Guest, Not a member yet? Register   Sign In
Get something or something and other from mysql
#1

[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 ?
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));
    }


}


Messages In This Thread
Get something or something and other from mysql - by El Forum - 11-08-2009, 03:10 PM
Get something or something and other from mysql - by El Forum - 11-08-2009, 05:48 PM
Get something or something and other from mysql - by El Forum - 11-08-2009, 06:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB