<?php
require 'config/database.php';
$stmt = $pdo->query('SHOW TABLES');
$all = [];
foreach ($stmt as $r) $all[] = current($r);
sort($all);
echo "All tables:\n";
foreach ($all as $t) echo "  $t\n";
echo "\nTotal: " . count($all) . "\n";
