Welcome Guest, Not a member yet? Register   Sign In
i want my password to be md5 using the codes posted, after execution i checked db content and its not in md5 format
#2

[eluser]jzmwebdevelopement[/eluser]
[quote author="anthar" date="1311511809"]i want my password to be md5 using the codes posted below, after execution i checked db content and its not in md5 format, is there something i missed? tnx

$this->form_validation->set_rules('password', 'Password', 'trim|required|matches[passconf]|md5');
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');

$this->db->query("INSERT INTO users (email, password) VALUES ('".$this->input->post('email')."', '".$this->input->post('password')."')");[/quote]

Yes:

Have a read here: http://ellislab.com/codeigniter/user-gui...elper.html


Messages In This Thread
i want my password to be md5 using the codes posted, after execution i checked db content and its not in md5 format - by El Forum - 07-24-2011, 02:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB