User Already Registered. "; } else { $q = "INSERT INTO `userregistration`(`UserName`,`Name`, `EmailID`, `Password`,`MobileNo`,`member`,`rdate`,`vdate`,`userregdate`) VALUES ('" . $_POST["phone"] . "','" . $_POST["name"] . "','" . $_POST["email"] . "','abc','" . $_POST["phone"] . "','0','','','" . $date . "')"; //print_r($q); //exit(); $res = mysqli_query($conn, $q); if ($res) { $msg = ""; } else { $msg = ""; } $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); $_SESSION['MobileNo'] = $row['MobileNo']; header("Location: otp.php"); } } ?> User Registration - Best Pathology Lab in Bopal Ahmedabad

Registration

appointment