I simply cant get the md5 encryption to work. It is easy enough to get an encrypted password typed into a form into the mySQL database. But to validate a user md5´ed password when the user tries to log in, is completely beyond me. I need some help with this. Here is my base code, what do I need to type in, in order to get it to work?
<?php
include "sqlfunctions.php";
if(isset($POST['submit']));
if($POST['adminuser']=='' OR $POST['adminpswd']==''){
errorlogin();
}else{
$adminuser=($POST['adminuser']);
$adminpswd=($_POST['adminpswd']);
dbconnect();
$sql = "SELECT * FROM adminlogin WHERE adminuser ='$adminuser' AND adminpswd ='$adminpswd'";
mysql_close();
}
?>