Member Already Exists. ";
}
else
{
$query11 = "INSERT INTO `userregistration`(`UserName`, `Name`, `EmailID`, `Password`, `MobileNo`, `member`,`rdate`,`vdate`) VALUES ('".$_POST["phone"]."','".$_POST["name"]."','".$_POST["emailid"]."','".$_POST["name"]."','".$_POST["phone"]."','".$_POST["member"]."','".$_POST["rdate"]."','".$_POST["vdate"]."')";
// print_r($query11);
// exit();
$result12=mysqli_query($conn,$query11);
$msg="
Member Added.
";
$last_id = $conn->insert_id;
$query = "SELECT * FROM userregistration where userid=$last_id";
//print_r($query);
$result = mysqli_query($conn,$query);
$row = mysqli_fetch_assoc($result);
$emailList="leads@clientsnow.co.in,".$row['EmailID'];
$headers .= "Bcc: ".$emailList."\r\n";
$body = "
Hi Patho World ,
User Registered.
Below are the details,
Name = ".$row['Name']."
Email = ".$row['EmailID']."
Phone = ".$row['MobileNo']."
";
//report@pathoworld.in
//mail("apurva@clientsnow.co.in","Inquiry", $body,$headers);
mail("report@pathoworld.in","Inquiry", $body,$headers);
header("Location:user.php");
}
}
?>