Jump to content

[SOLVED] MD5 Problems


gazalec

Recommended Posts

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

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.