Question: Im not sure what the issue is , nothing is popping up after i submit the email and password. nothing is in the system for
Im not sure what the issue is nothing is popping up after i submit the email and password. nothing is in the system for the specific database information shooterfps, for the id it is searching for
if $SERVERREQUESTMETHOD' 'POST'
requiremysqliconnect.php;
$errors ;
if empty$POSTemail
$errors 'You forgot to enter your email address.;
else
$e mysqlirealescapestring$dbc trim$POSTemail;
if empty$POSTpass
$errors 'You forgot to enter your current password.;
else
$p mysqlirealescapestring$dbc trim$POSTpass;
if empty$errors If everything's OK
Check that they've entered the right email addresspassword combination:
$q "SELECT gamerid FROM gamers WHERE email$e AND passSHA$p;
$r @mysqliquery$dbc $q;
$num @mysqlinumrows$r;
if $num Match was made.
Get the gamerid:
$row mysqlifetcharray$r MYSQLINUM;
$q "SELECT shooterid FROM shooterfps WHERE gamerid ;
$r @mysqliquery$dbc $q;
$num @mysqlinumrows$r;
if $num Match was made.
$num @mysqlinumrows$row;
if $num
$t "SELECT ingamertag, playerlevel, wave, goldearned, totalkills, FROM towerdefence WHERE towerid$row;
$r @mysqliquery$dbc $t;
echo No Information Found';
else Invalid email addresspassword combination.
echo 'The email address and password do not match those on file.The following errors occurred:
;
foreach $errors as $msg Print each error.
echo $msg
;
echo 'Please try again.
Email Address: Password:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
