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 ($_SERVER['REQUEST_METHOD']== 'POST'){
require('mysqli_connect.php');
$errors =[];
if (empty($_POST['email'])){
$errors[]= 'You forgot to enter your email address.';
} else {
$e = mysqli_real_escape_string($dbc, trim($_POST['email']));
}
if (empty($_POST['pass'])){
$errors[]= 'You forgot to enter your current password.';
} else {
$p = mysqli_real_escape_string($dbc, trim($_POST['pass']));
}
if (empty($errors)){// If everything's OK.
// Check that they've entered the right email address/password combination:
$q = "SELECT gamer_id FROM gamers WHERE (email='$e' AND pass=SHA2('$p',512))";
$r = @mysqli_query($dbc, $q);
$num = @mysqli_num_rows($r);
if ($num ==1){// Match was made.
// Get the gamer_id:
//$row = mysqli_fetch_array($r, MYSQLI_NUM);
$q = "SELECT shooter_id FROM shooterfps WHERE gamer_id ";
$r = @mysqli_query($dbc, $q);
$num = @mysqli_num_rows($r);
if ($num ==1){// Match was made.
$num = @mysqli_num_rows($row);
if ($num ==1){
$t = "SELECT ingamertag, playerlevel, wave, goldearned, totalkills, FROM towerdefence WHERE tower_id=$row[0]";
$r = @mysqli_query($dbc, $t);
echo 'No Information Found';
}
}
} else {// Invalid email address/password combination.
echo 'The email address and password do not match those on file.The following error(s) 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!