<?php
require_once 'config/db.php';
$stmt = $pdo->query('SELECT * FROM site_analytics ORDER BY id DESC LIMIT 5');
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
header('Content-Type: text/plain; charset=utf-8');
print_r($data);
?>