Verify Password Matches Post to Game
Posted: Tue Nov 04, 2014 11:42 pm
I don't even know if this is possible as I've been playing around with this for a couple of weeks.. but I can't get it working.
All I want to do is verify if the player's POSTed "password" matches the password in their game account.
It appears that passwords are entered into the game database using:Whatever %s means.. I can't figure that out. Anyways!
What do I need to do to verify that password? The following does not work:
How do I verify these passwords? -_-
Edit: Figured it out. =\ Spelling error. I've seriously been dealing with this for like 10 days. Gahhhhhh.
All I want to do is verify if the player's POSTed "password" matches the password in their game account.
It appears that passwords are entered into the game database using:
Code: Select all
accounts (password)
VALUES (PASSWORD('%s'))
What do I need to do to verify that password? The following does not work:
Code: Select all
SELECT * FROM `accounts` WHERE id='$id' && password = PASSWORD($_POST[password])
Edit: Figured it out. =\ Spelling error. I've seriously been dealing with this for like 10 days. Gahhhhhh.