exec( "CREATE TABLE IF NOT EXISTS contact_requests ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(120) NOT NULL, email VARCHAR(160) NOT NULL, message TEXT NOT NULL, status VARCHAR(30) NOT NULL DEFAULT 'new', ip_address VARCHAR(45) DEFAULT NULL, user_agent VARCHAR(255) DEFAULT NULL, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" ); } ensure_contact_table(); $detail = null; if (isset($_GET['id']) && ctype_digit($_GET['id'])) { $stmt = db()->prepare('SELECT * FROM contact_requests WHERE id = :id'); $stmt->execute([':id' => (int) $_GET['id']]); $detail = $stmt->fetch(); } $stmt = db()->prepare('SELECT id, name, email, status, created_at FROM contact_requests ORDER BY created_at DESC LIMIT 50'); $stmt->execute(); $rows = $stmt->fetchAll(); ?> Contact Requests

Latest inquiries

No inquiries yet. New submissions will appear here.

ID Name Email Status Received
#

Inquiry detail

Select a request to see the full message.

From

Message

Received · Status