OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
reels
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📁
assets
-
01/20/2025 08:39:05 AM
rwxr-xr-x
📄
comment.php
441 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📄
db.php
261 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📄
fetch_videos.php
639 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📄
index.php
2.11 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
like.php
285 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📄
upload.php
1.52 KB
05/19/2025 10:07:13 AM
rwxrwxrwx
📁
uploads
-
01/20/2025 08:39:07 AM
rwxrwxrwx
Editing: comment.php
Close
<?php // comment.php include 'db.php'; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $videoId = $_POST['video_id']; $comment = $_POST['comment']; $userId = 1; // Replace with session user ID. $stmt = $conn->prepare("INSERT INTO comments (video_id, user_id, comment) VALUES (?, ?, ?)"); $stmt->bind_param("iis", $videoId, $userId, $comment); $stmt->execute(); header("Location: index.php"); } ?>