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 Link to comment https://forums.phpfreaks.com/topic/108044-function-help/ 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. Link to comment https://forums.phpfreaks.com/topic/108044-function-help/#findComment-553848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.