forumnz Posted September 22, 2007 Share Posted September 22, 2007 PLease let me know what I a doing wrong. I just doesn't insert md5 password. Thanks, Sam. <?php include('connect.php'); mysql_select_db("bbmembers", $con); $password=md5($password); $sql="INSERT INTO members (firstname, lastname, email, password) VALUES ('$_POST[firstname]','$_POST[lastname]','$_POST[email]','$_POST[password]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con) ?> Link to comment https://forums.phpfreaks.com/topic/70272-solved-insert-inti-bd-md5/ Share on other sites More sharing options...
rarebit Posted September 22, 2007 Share Posted September 22, 2007 ?? '$_POST[password]' should be $password... I think? Link to comment https://forums.phpfreaks.com/topic/70272-solved-insert-inti-bd-md5/#findComment-352926 Share on other sites More sharing options...
robcrozier Posted September 22, 2007 Share Posted September 22, 2007 Try: $password=md5($_POST['password']); Instead of: $password=md5($password); and then insert $password into database instead of $_POST[password]. Hope that works... Link to comment https://forums.phpfreaks.com/topic/70272-solved-insert-inti-bd-md5/#findComment-353023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.