query($query); if($results->num_rows){ if($result = $results->fetch_assoc()){ $usersession = array( 'user_id' => $result['u_id'], 'name' => $result['name'], 'email' => $result['email'], 'role' => $result['role'] ); $_SESSION['user'] = $usersession; exit(header("location: profile.php")); } }else{ echo ''; } }else{ echo ''; } } ?> B2B LOGIN/SIGN UP query("SELECT u_id FROM users WHERE email = '$email'"); if($userdata->num_rows){ echo ''; }else{ $sql = "INSERT INTO users (name, email, mobile, password, city, status) VALUES ('$name', '$email', '$mobile', '$password','$city', 0)"; if(mysqli_query($conn, $sql)){ $to = "user@oasisbaklawa.com,brijeshoasisbaklawa@gmail.com"; $msg1 = "Dear Oasis Baklawa Team

I hope this email finds you well. I am writing to inform you that we have received a new user registration on our Oasis Baklawa B2B Portal. This email serves as a reminder to review and approve the user's login access.

The new user has completed the registration process and is eagerly waiting to access their account. As a valued member of our team, your approval is vital in granting them access to our platform.

"; $msg1 .="User Details

Name - $name
Number - $mobile
Email - $email
City - $city

Best regards,
Oasis Baklawa"; $subject = "Action Required: New User Registration Approval - Oasis Baklawa B2B Portal"; $header = "From: Oasis Baklawa B2B Portal "."\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type:text/html;charset=UTF-8" . "\r\n"; mail($to, $subject, $msg1, $header); $msg2 = "Dear $name,

"; $msg2 .= "Thank you for signing up with Oasis Baklawa! We are delighted to have you as a valued member of our B2B business platform. We look forward to supporting your company's growth and success.

"; $msg2 .="To ensure the security and integrity of our platform, we kindly ask for your patience while our team verifies your registration details. This process typically takes up to 30 minute. Once your account has been successfully verified, you will receive a confirmation email with login instructions.

"; // $msg2 .="Oasis Baklawa offers a seamless ordering experience and a wide range of products to cater to your baklawa needs. Our platform is designed to simplify your procurement operations, making it easier for you to browse products, place orders, and track deliveries.

"; //$msg2 .="We understand the importance of efficient and reliable customer support, and our dedicated team is always ready to assist you. If you have any questions, concerns, or require assistance during the verification process or once your account is active, please don't hesitate to reach out to us. We are committed to ensuring your experience with Oasis Baklawa is exceptional.

"; //$msg2 .="We appreciate your understanding and cooperation during the verification period. We are confident that once your account is verified, you will be able to leverage the full potential of our platform and start placing orders conveniently.

"; $msg2 .="Thank you once again for choosing Oasis Baklawa as your B2B partner. We are excited to embark on this journey together and witness your business thrive. Look out for the confirmation email in the next 30 minute.

"; $msg2 .="Best regards,

Oasis Baklawa
Customer Care- +91 9999-7929-59
Email- help@oasisbaklawab2b.com
Website- www.oasisbaklawab2b.com"; $subject2 = "Welcome to Oasis Baklawa - India's Most Preferred Arabic Sweet Brand"; $header2 = "From: Oasis Baklawa B2B Portal "."\r\n"; $header2 .= "MIME-Version: 1.0\r\n"; $header2 .= "Content-type:text/html;charset=UTF-8" . "\r\n"; mail($email, $subject2, $msg2, $header2); echo ''; echo ''; } } }else{ echo ''; } } ?>

Welcome Back!

Already have an account?

Welcome, To

Oasis Baklawa

Don’t have an account?