OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
quiz
/
backup
/
assets
/
php
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/15/2025 11:20:34 AM
rwxr-xr-x
📁
PHPMailer
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
db_config.php
523 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
function.php
546 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
mail.php
2.01 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
validate.logged.php
312 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
validate_json.php
286 bytes
05/19/2025 10:07:16 AM
rw-r--r--
Editing: function.php
Close
<? function count_registerd_students($userId) { global $conn; $sql = "SELECT COUNT(*) AS count FROM child_details WHERE user_id = ?"; $stmt = $conn->prepare($sql); if ($stmt === false) { die("Failed to prepare statement: " . $conn->error); } $stmt->bind_param("i", $userId); $stmt->execute(); $result = $stmt->get_result(); $count = 0; if ($result && $row = $result->fetch_assoc()) { $count = (int)$row['count']; } $stmt->close(); return $count; }