Jump to content

[SOLVED] Code not working anymore


timmah1

Recommended Posts

I have a register page it encrypts the password with a * in the password field. It worked fine up until a few days ago.

The code wasn't touched.

 

Here's the script:

$insert = mysql_query("insert into $table values ('NULL','".$_POST["username"]."',"."PASSWORD('".$_POST["password"]."'),'".$_POST["username"]."',NOW(),'".$_POST["name"]."','".$_POST["last"]."','".$_POST["address"]."','".$_POST["city"]."','".$_POST["state"]."','".$_POST["zip"]."','".$_POST["phone"]."','members','no')")

The password looks like this

*FF1E3D52BAA4D468BEA88AB15802206EC1C5BFFC

 

Now, when someone registers, the password looks like this

4455e452290bad0b

 

Can anybody tell me why it's doing this all of a sudden?

Link to comment
https://forums.phpfreaks.com/topic/102593-solved-code-not-working-anymore/
Share on other sites

I tried to do this with this logn

$q = "SELECT * FROM `users` "
  ."WHERE `username`='".$_POST["username"]."' "
  ."AND `password`=MD5('".$_POST["password"]."') "
  ."AND `active`='yes' "
  ."LIMIT 1";

 

But it says incorrect username and or password.

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.