[eluser]meer[/eluser]
can u modify your code as
controller
$email=$this->input->post('email');
$pwd=$this->input->post('pwd');
$this->load->model('quiz_mode');
$data = $this->quiz_mode->validate($email,$pwd);
if($data
{
put some code...
)
else
{
put the code on ret false.......
}
$this->load->view('your_view');
model
function validate($email,$pwd)
{
$this->db->select('email,pwd');
$this->db->from('tbl_name');
$this->db->where('email',$email);
$this->db->where('pwd',$pwd);
$query = $this->db->get();
if($query->num_rows()>0)
{
return $query->result();
}
}