OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
reader
/
clients
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/04/2025 08:32:49 AM
rwxr-xr-x
📄
esamudaay.php
1.03 KB
05/19/2025 10:07:15 AM
rw-r--r--
Editing: esamudaay.php
Close
<? require_once '../inc/config.php'; require_once '../inc/validate.logged.php'; // Assuming you have already established a connection to the database in $db // Check if 'feedId' is set in the POST request if (isset($_POST['feedId'])) { $feedId = (int)$_POST['feedId']; // Cast to int for safety // Prepare the SQL statement $sql = "UPDATE user_collection SET esamudaay = 1 WHERE id = ? AND user_id = ?"; $stmt = $db->prepare($sql); if ($stmt) { // Bind the parameters $stmt->bind_param("ii", $feedId, $gUserId); // Execute the statement if ($stmt->execute()) { echo "Record updated successfully."; } else { echo "Error updating record: " . $stmt->error; } // Close the statement $stmt->close(); } else { echo "Error preparing statement: " . $db->error; } } else { echo "feedId and user_id must be provided."; } // Close the database connection if it's not needed anymore $db->close();