Jump to content

[SOLVED] Insert inti bd MD5


forumnz

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.