<?php
require 'c:/xampp/htdocs/dizzartshopping/shopnest/php-api-server/config/database.php';
$db = getDb();
$res = $db->query("SELECT id, title, message, image_url, created_at FROM notifications ORDER BY created_at DESC LIMIT 5");
while($row = $res->fetch_assoc()) {
    echo json_encode($row) . "\n";
}
?>
