/home/u764571690/domains/ojaspunj.com/public_html
NameSizeModeActions
api/-0755rm
app/-0755rm
billing/-0755rm
certificates/-0755rm
css/-0755rm
detail image/-0755rm
favicon_io/-0755rm
fontawesome/-0755rm
fonts/-0755rm
image/-0755rm
indeximage/-0755rm
js/-0755rm
OFFER PRODUCT/-0755rm
offer product/-0755rm
our product/-0755rm
productdetail/-0755rm
qwertyuiopasdfghjklzxcvbnmmnbvcxzlkjhgfdsapoiuytrewqqazwsxedcrfvtgbyhnujmikolppolikujmyhntgbrfvedcwsxqazasdfghjklpoiuytrewqzxcvbnmqwasedrftgyhjuikoplkjhgfdsazxcvbnmkoiuyhgtfrdeswqaszxdfcvgfdewwsdwasjdjfoifsdnjfhsudhfgjdssdhfgushfgbdghuifgbdgvhsdfg/-0755rm
scholarship/-0755rm
upload product/-0755rm
vendor/-0755rm
.htaccess26540644editdlrm
about.php235700644editdlrm
add_certificate.php71590644editdlrm
add_offer_product.php91010644editdlrm
add_our_product.php71460644editdlrm
add_product.php71860644editdlrm
admin_dashboard.php279320644editdlrm
admin_login.php49910644editdlrm
android-chrome-192x192.png269990644editdlrm
android-chrome-512x512.png1301820644editdlrm
apple-touch-icon.png242760644editdlrm
bmi.html110590644editdlrm
buy.php344580644editdlrm
check_session.php32280644editdlrm
composer-setup.php584440644editdlrm
composer.json990644editdlrm
composer.lock477060644editdlrm
composer.phar31255680644editdlrm
config.php2460644editdlrm
contact.php58520644editdlrm
create_remember_tokens.php5730644editdlrm
dashboard.php1400560644editdlrm
db_connect.php7120644editdlrm
delete_product.php25670644editdlrm
edit_offer_product.php72580644editdlrm
favicon-16x16.png7380644editdlrm
favicon.ico154060644editdlrm
favicon.png19580644editdlrm
get_product_detail_filename.php6470644editdlrm
google8752ffcd74dff0e8.html530644editdlrm
googledc4255937cf5f8da.html530644editdlrm
google_oauth.php65390644editdlrm
index.php696210644editdlrm
loading.html5840644editdlrm
log.php5960644editdlrm
login.php174160644editdlrm
logout.php5980644editdlrm
my_orders.php132850644editdlrm
order_success.php35440644editdlrm
our_certificate.php108090644editdlrm
our_product.php95890644editdlrm
privacypolicy.php42770644editdlrm
product1.php220230644editdlrm
profile.php184260644editdlrm
refund.php62820644editdlrm
register.php158000644editdlrm
robots.txt7420644editdlrm
savitrfoundationscholarship.php1603320644editdlrm
sitemap.xml9350644editdlrm
specialoffer.php132340644editdlrm
terms$condition.php64120644editdlrm
verify_payment.php197700644editdlrm
view.php48700644editdlrm
x.php190560644editdlrm
Edit: /home/u764571690/domains/ojaspunj.com/public_html/register.php (15800B)
prepare("SELECT user_id FROM users WHERE email = ? LIMIT 1"); $stmt_email->bind_param("s", $email); $stmt_email->execute(); $stmt_email->store_result(); if ($stmt_email->num_rows > 0) { // Pass error message in URL parameter $error_message = urlencode('Email address is already registered.'); $stmt_email->close(); $conn->close(); header('Location: register?error=' . $error_message); exit(); } $stmt_email->close(); // Check if mobile number already exists (only if provided) if (!empty($mobile)) { $stmt_mobile = $conn->prepare("SELECT user_id FROM users WHERE mobile = ? LIMIT 1"); $stmt_mobile->bind_param("s", $mobile); $stmt_mobile->execute(); $stmt_mobile->store_result(); if ($stmt_mobile->num_rows > 0) { // Pass error message in URL parameter $error_message = urlencode('Mobile number is already registered.'); $stmt_mobile->close(); $conn->close(); header('Location: register?error=' . $error_message); exit(); } $stmt_mobile->close(); } // Hash the password $hashed_password = password_hash($password, PASSWORD_DEFAULT); // Insert the new user into the database // Using 'fullname' to match database column name $stmt_insert = $conn->prepare("INSERT INTO users (fullname, email, mobile, password) VALUES (?, ?, ?, ?)"); $stmt_insert->bind_param("ssss", $fullname, $email, $mobile, $hashed_password); if ($stmt_insert->execute()) { // Registration successful, pass success message in URL parameter and redirect to login page $success_message = urlencode('Registration successful! You can now login.'); // Use HTML redirect for better mobile compatibility echo ' Redirecting...

Registration successful! Redirecting to login...

If you are not redirected automatically, click here.

'; exit(); } else { // Pass error message in URL parameter $error_message = urlencode('Error during registration: ' . $conn->error); header('Location: register?error=' . $error_message); exit(); } $stmt_insert->close(); $conn->close(); } ?> Register - Ojas Punj

Create Your Account

- OR -

Register with Google

Already have an account? Login here