[eluser]tabatsoy[/eluser]
Greetings Earthlings!!!
Here is my code:
Code:
if ($this->form_validation->run() == FALSE) {
$this->load->view('admin/login', $data);
}
else {
$query = $this->db->query('SELECT * FROM admin WHERE username = "'.$username.'" AND password = "'.$password.'"');
if ($query->num_rows() < 1) {
$data['message'] = 'Invalid Username or Password';
$this->load->view('admin/login', $data);
}
else {
redirect('exam/admin');
}
}
My problem is my redirect is not working. I says
An Error Was Encountered
Unable to load the requested file: admin.php
Please help
thanks