Unable to connect to the datbase server.
" . "Error Code " .mysqli_connect_errno() . ": " . mysqli_connect_error()) . "
"; $DBName = "skyward_aviation"; @mysqli_select_db($DBConnect, $DBName) Or die("Unable to select the database.
" . "Error Code " . mysqli_errno($DBConnect) . ": " . mysqli_error($DBConnect)) . "
"; $TableName = "frequent_flyers"; $SQLstring = "SELECT * FROM $TableName WHERE email='$FlyerEmail'"; $QueryResult = @mysqli_query($DBConnect, $SQLstring) Or die ( "Unable to exequte Select query.
" . "Error Code " . mysqli_errno($DBConnect) . ": " .mysqli_error($DBConnect)). "
"; if (mysqli_num_rows($QueryResult) == 0) die("You must enter a registered email. Click the back button
"); $Row = mysqli_fetch_row($QueryResult); if ($FlyerPassword != $Row[2]) die ("You did not enter a valid password. Click the back button
"); $FlyerID = $Row[0]; ?>