connect_errno) {
die("ERROR : -> ".$DBcon->connect_error);
}
$upd_id= $_GET['upd_id'];
if(isset($_POST['submit']))
{
$name = strip_tags($_POST['name']);
$phoneno = strip_tags($_POST['phoneno']);
$emailid = strip_tags($_POST['emailid']);
$password = strip_tags($_POST['password']);
$check_email = $DBcon->query("SELECT emailid FROM testccmeet WHERE emailid='$emailid'");
$count=$check_email->num_rows;
if ($count==0)
{
$query ="INSERT INTO `testccmeet`(`name`,`emailid`,`password`,`phoneno`)
VALUES('$name','$emailid','$password','$phoneno')";
if ($DBcon->query($query))
{
$to=$email;
$subject = "Dear".$name."!";
$from = ' ksacademy23@gmail.com';
$fromName = 'KS Academy';
$subject = "KS Academy";
$htmlContent = '
Happy Day '.$name.' !
Welcome to Pathway to Growth!
Thank you for registering for KSA Online Interactive Session!
Date of Meeting - December 20, 2020
Day - Sunday
Time - 10.30 AM to 11.30 AM
Name:'.$name.'
Email:'.$emailid.'
phone Number:'.$phoneno.'
';
mail($to, $subject, $htmlContent,$headers);
if($board!='State Board'){
echo "";
}
if($board=='State Board'){
echo "";
}
}
else {
echo"";
}
}
else {
echo"";
}
$DBcon->close();
}
?>