OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
knobly_scribe
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📄
edit_post.php
2.23 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
getEditContent.php
874 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📄
index.php
28.4 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
process_data.php
5.24 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
scribe.php
53.48 KB
05/19/2025 10:07:19 AM
rw-r--r--
Editing: getEditContent.php
Close
<?php header('Content-Type: application/json'); include '../assets/php/db_config.php'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['post_id'])) { $post_id = $_POST['post_id']; // Prepare the SQL statement to get the chat content $stmt = $readerdb->prepare("SELECT chat FROM reader_scribe WHERE id = ?"); $stmt->bind_param("i", $post_id); // Execute the query if ($stmt->execute()) { // Fetch the result $stmt->store_result(); $stmt->bind_result($chat); $stmt->fetch(); $res = [ 'chat' => $chat, // Return the chat content ]; } else { $res = [ 'chat' => "", ]; } $stmt->close(); echo json_encode($res); } }