CodeIgniter Forums
error in retriving md5 password - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: error in retriving md5 password (/showthread.php?tid=45451)



error in retriving md5 password - El Forum - 09-22-2011

[eluser]Unknown[/eluser]
hello
i have inserted password in database using md5 and set my security salt too.
while retrieving password field and comparing it with user entered i am getting error.
my code for model is :

$sec=md5($this->input->post('UserPass'));
$this->db-> select('UserName,Password');
$this->db-> from('users');
$this->db-> where('UserName',$this->input->post('UserName'));
$this->db-> where('Password',$sec);

and the error i got is:
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: errotxt

Filename: views/error_page.php

Line Number: 108

thanks allot for help