I have log in form with Username and Password.
$con=mysqli_connect(LOGINDETAILS);
/*if (!$con) {
die("Can not connect: " . mysql_error());
}
*/
$Username = $_POST['Username'];
$pswd = $_POST['pswd'];
$pswd = md5($pswd);
$sql="INSERT IGNORE INTO CyberSecurity (pswd, Username)
VALUES('$pswd', '$Username')";
mysqli_query($con,$sql);
echo "The password that you provided has been stored in our database for research purposes.";
mysqli_close($con);
?>
I tried using the INSERT IGNORE
but it stills saves the password even though its the exact same one.