$stmt = $con->prepare('SELECT * FROM fusion_eligible_registrants WHERE user_last = ?');
$stmt->bind_param('s', $_POST['user_last']);
$stmt->execute();
$stmt->store_result();
if ($stmt->num_rows > 0) {
// continue to process registration
} else {
exit('Last Name not on eligible to register list!');
}
if (isset($_POST['register'])) {
if (isset($_POST['user_last'])) {
$lastname = $_POST['user_last'];
}
$result = dbquery("SELECT user_last FROM ".DB_PREFIX."hphs64_reg WHERE user_last='$lastname'");
if (dbrows($result) != 0) {
redirect("shazam.php");
} else {
opentable($locale['400']);
echo "<p><table width='500' align='center' border='1' cellpadding='10'><tr style='color:black'>n";
echo "<td align='center' bgcolor='#fefefe'><h4><b>".$locale['406']."</b></h4></td>n";
echo "</tr></table><br><br>n";
closetable();
require_once THEMES."templates/footer.php";
}
}
$result = dbquery("SELECT user_last FROM ".DB_HPHS64_REG." WHERE user_last='$lastname'");
$result = dbquery("SELECT user_last FROM fusion6S71B_hphs64_reg WHERE user_last='$lastname'");
Category Forum
Settings - 8Labels
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions