<?php
require 'config/db.php';

$tables = ['tbl_bookings', 'tbl_tracking'];
foreach ($tables as $table) {
    try {
        $result = $pdo->query("SELECT 1 FROM $table LIMIT 1");
        echo "$table exists.\n";
    } catch (PDOException $e) {
        echo "$table does NOT exist.\n";
    }
}
?>