[eluser]ywftdg[/eluser]
Ok, got it working. One thing though, I ended up placing my redirect in the model, is this good form? After it checks the query listed above in my model, it then says either move on, or reload the form. Is it ok to be in the model, or should this be back in the controller after the model is loaded. I ask because I couldn't get it to work in the controller, only in the model like this ->
Code:
function check_emailpassword($data) {
$this->load->library('session');
$email = $data['email'];
$password = $data['password'];
$this->db->select('*');
$this->db->where('designer.dEmail' , $email);
$this->db->where('designer.dPassword' , $password);
$this->db->from('designer');
$query = $this->db->get();
if ($query->num_rows() > 0) { // REDIRECT
$this->session->set_userdata('designeremail', $email);
redirect('designers/account');
} else {
$this->load->view('login_view');
}
}