Jump to content
MakeWebGames

Just a small, puny, itty-bitty, cute, tiny little problem


Jesse60905

Recommended Posts

Ok I need to put in a code in the preferences page.

 

global $db,$ir,$c,$userid,$h;
if(md5($_POST['oldpw']) != $ir['userpass'])
{

 

That is basically where I need to put it. I need it to make it so when the user puts in their old password in the pass change that it inserts a small piece of code before converting it to MD5. I have an example of what I need.

 

$db->query("UPDATE users SET userpass=md5('{$_POST['newpw']}THE CODE') WHERE userid=$userid");

 

That is pretty much what I want/need done. No rush as I have a few days but if possible I would like a quick answer. Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...