OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
reels
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/31/2025 06:36:42 AM
rwxr-xr-x
📁
assets
-
03/26/2025 04:15:54 AM
rwxr-xr-x
📄
comment.php
441 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
db.php
252 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
fetch_videos.php
639 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
index.php
2.11 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
like.php
285 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
upload.php
1.52 KB
03/26/2025 03:48:11 AM
rw-r--r--
📁
uploads
-
03/26/2025 04:20:08 AM
rwxr-xr-x
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"); } ?>