<?php
require_once 'config/db.php';
echo "<h2>Package Image Debug</h2>";
$res = $conn->query("SELECT id, title, main_image FROM packages");
while($p = $res->fetch_assoc()) {
    echo "ID: {$p['id']} | Title: {$p['title']} | DB Main Image: '{$p['main_image']}'<br>";
    $path = "uploads/" . $p['main_image'];
    if(!empty($p['main_image']) && file_exists($path)) {
        echo "<span style='color:green'>✓ File exists at $path</span><br>";
    } else {
        echo "<span style='color:red'>✗ File NOT found at $path</span><br>";
    }
    echo "<hr>";
}
?>
