Why my last else $msg
is not working ? Even I do this correct. Please help and fix my issue.
Code:
//Cancel button start
if (isset($_POST['cncl'])) {
$sql = "DELETE FROM users WHERE Email_ID='$email' AND token='$token' AND isEmailConfirmed='PENDING' AND isMobileConfirmed='PENDING'";
///
if ($con - > query($sql) === TRUE) {
$msg = "<div class='alert-box success'><span>Registration cancelled. < /
span > < /div > ";
} else {
$msg = "<div class='alert-box warning'><span>Registration cancelled! Please signup again if you create again!</span> < /
div > ";
}
///
}
//Cancel button end