Thank you!
You are now in the database.
';
} else { // If it did not run OK.
// Public message:
echo 'System Error
You could not be registered due to a system error. We apologize for any inconvenience.
';
// Debugging message:
echo '' . mysqli_error($dbc) . '
Query: ' . $q . '
';
} // End of if ($r) IF.
mysqli_close($dbc); // Close the database connection.
// Include the footer and quit the script:
include ('includes/footer.html');
exit();
} else { // Report the errors.
echo 'Error!
The following error(s) occurred:
';
foreach ($errors as $msg) { // Print each error.
echo " - $msg
\n";
}
echo '
Please try again.
';
} // End of if (empty($errors)) IF.
mysqli_close($dbc); // Close the database connection.
} // End of the main Submit conditional.
?>