░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/home/ilrtztmy/woodcoffiefurnitureworks.com/api/quotes
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: index.php
<?php header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); include_once __DIR__ . '/../config/db.php'; $database = new Database(); $db = $database->getConnection(); $query = "SELECT q.*, p.name AS product_name FROM quotes q LEFT JOIN products p ON q.product_id = p.id ORDER BY q.created_at DESC"; $stmt = $db->prepare($query); $stmt->execute(); $quotes = []; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $quotes[] = [ "id" => $row['id'], "name" => $row['name'], "email" => $row['email'], "phone" => $row['phone'], "context" => $row['context'], "product_id" => $row['product_id'], "product_name" => $row['product_name'], "message" => html_entity_decode($row['message']), "status" => $row['status'], "created_at" => $row['created_at'] ]; } http_response_code(200); echo json_encode($quotes); ?>
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 create.php
PHP
1.6 KB
2026-06-22 11:02
EDIT
📄 delete.php
PHP
1.2 KB
2026-06-18 14:10
EDIT
📄 get.php
PHP
1.7 KB
2026-06-22 10:13
EDIT
📄 index.php
PHP
996 B
2026-06-22 11:35
EDIT
📄 update_status.php
PHP
1.1 KB
2026-06-18 14:10
EDIT