Welcome Guest, Not a member yet? Register   Sign In
page redirection
#1

[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


Messages In This Thread
page redirection - by El Forum - 01-14-2009, 08:27 PM
page redirection - by El Forum - 01-14-2009, 08:43 PM
page redirection - by El Forum - 01-14-2009, 08:56 PM
page redirection - by El Forum - 01-14-2009, 09:40 PM
page redirection - by El Forum - 01-14-2009, 10:13 PM
page redirection - by El Forum - 01-14-2009, 10:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB