unidox Posted May 30, 2008 Share Posted May 30, 2008 I have a function to add certain elements into sql. This is it: function add(array("username", "password", "email")) { $i = 0; foreach($arr as $v){ $i++; eval("$" . $v . " = " . escape_data($_POST[$v]) . ";"); } } That code turns it into variables in order to place it in sql. But my question is for the password field. I dont want to use escape_data on it because I want to use md5(). I was wondering how I would go about doing that. Thanks Quote Link to comment Share on other sites More sharing options...
Barand Posted May 30, 2008 Share Posted May 30, 2008 I'd be very surprised if that function does anything at all. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.