18.06.2016, 02:06
Okay so i hash my password in my script with WP_Hash and it works in the game but i have been creating a UCP and i ahve everything setup to choose from the database and read the password and it doesnt take it, it always says it wrong. i ahve no idea what i have done. everything looks fine to me...
The .php code for the login poart
I really am stumped and cannot move on with editing my ucp and it is really holding me back. Thank you, (Post below if you need to see anyother part of the code from the .pwn or .php.
The .php code for the login poart
Код:
$query = "SELECT * FROM `Users` WHERE `Name`= '".$_SESSION['Character']."' AND `Password`= '".$_SESSION['Key']."'"; $result = mysql_query($query); if(mysql_num_rows($result) == 0) { $wa = mysql_num_rows($result); unset ($_SESSION['Key'],$_SESSION['Character']); echo 'Username and password do not match!<br>Make sure that you wrote your character'."'".'s IG name with a "_".<meta HTTP-EQUIV="REFRESH" content="3; url=index.php">'; }