gazalec Posted April 20, 2007 Share Posted April 20, 2007 Hi i am starting to use Md5 i was just wondering how i go about it because i've tried i few things i used to have passwords in justnormal form for testing now i need encryption but i tried to change the passwords i had with MD5 ones and it just wont work i have a for that passes two variables cust_no and password then the PHP is this $cust_no = $_POST['cust_no']; $password = $_POST['password']; $pass = md5($password); include 'opendb.php'; $query = "UPDATE login SET password = '".$pass."' WHERE cust_no = '".$cust_no."'"; include 'closedb.php'; echo $pass; and when i echo the $pass it comes up with the MD5 password so i dont know if i'm not doing it right or my database isn't configured properly ??? Link to comment https://forums.phpfreaks.com/topic/47868-solved-md5-problems/ Share on other sites More sharing options...
trq Posted April 20, 2007 Share Posted April 20, 2007 Are you actually executing the query anywhere? Link to comment https://forums.phpfreaks.com/topic/47868-solved-md5-problems/#findComment-233879 Share on other sites More sharing options...
gazalec Posted April 20, 2007 Author Share Posted April 20, 2007 yeah i just realised it hadnt that's what was wrong thanks for the reply Link to comment https://forums.phpfreaks.com/topic/47868-solved-md5-problems/#findComment-233881 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.