OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
quiz
/
backup
/
process
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
check_user_exists.php
840 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
logged_out.php
132 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
loginCheck.php
1.17 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
sendOTP.php
2.51 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
showChildDetails.php
1.11 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
storeChildDetails.php
1.83 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
submitParentForm.php
2.03 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
verifyOtp.php
459 bytes
05/19/2025 10:07:16 AM
rw-r--r--
Editing: check_user_exists.php
Close
<?php header('Content-Type: application/json'); require('../assets/php/db_config.php'); $email = $_POST['email']; $mobile = $_POST['mobile']; // Check if email exists $emailExistsQuery = "SELECT COUNT(*) FROM users WHERE email = ?"; $stmt = $conn->prepare($emailExistsQuery); $stmt->bind_param('s', $email); $stmt->execute(); $emailResult = $stmt->get_result(); $emailExists = $emailResult->fetch_row()[0] > 0; // Check if mobile exists $mobileExistsQuery = "SELECT COUNT(*) FROM users WHERE mobile = ?"; $stmt = $conn->prepare($mobileExistsQuery); $stmt->bind_param('s', $mobile); $stmt->execute(); $mobileResult = $stmt->get_result(); $mobileExists = $mobileResult->fetch_row()[0] > 0; // Return JSON response echo json_encode([ 'emailExists' => $emailExists, 'mobileExists' => $mobileExists ]); ?>