One Hat Cyber Team
Your IP :
216.73.216.186
Server IP :
91.108.106.166
Server :
Linux in-mum-web1837.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64
Server Software :
LiteSpeed
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
u322583024
/
domains
/
jimmy2chs.in
/
public_html
/
View File Name :
insert_event_data.php
<?php session_start(); // Start the session to access session variables // Include your database connection file include('connection.inc.php'); if(isset($_SESSION['USER_LOGIN'])) { $loggedin = true; $u_id = $_SESSION['USER_ID']; $u_name = $_SESSION['USER_NAME']; $u_email = $_SESSION['USER_EMAIL']; $u_contact = $_SESSION['USER_CONTACT']; } else { $loggedin = false; $u_id = '0'; header('Location: index.php#main-carousel2'); // Redirect if not logged in exit; } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $event_id = mysqli_real_escape_string($con, $_POST['event_id']); // Use correct session key for user ID $u_id = $_SESSION['USER_ID']; // Insert query $sql = "INSERT INTO user_event_read (event_id, user_id) VALUES ('$event_id', '$u_id')"; if (mysqli_query($con, $sql)) { echo "Record marked as read successfully"; } else { echo "Error: " . $sql . "<br>" . mysqli_error($con); } // Redirect back to the original page header('Location: all_event.php'); exit; } ?>