« Back to History
tasks.php
|
20260723_000646.php
Initial Domain Snapshot
Copy Code
<?php declare(strict_types=1); require_once __DIR__ . '/db.php'; try { $connection = getDatabaseConnection(); $statement = $connection->query( 'SELECT id, title, description, created_at FROM tasks ORDER BY id DESC' ); sendJsonResponse([ 'success' => true, 'tasks' => $statement->fetchAll(), ]); } catch (Throwable $exception) { sendJsonResponse([ 'success' => false, 'message' => $exception->getMessage(), ], 500); }