<?php
$conn = new mysqli("localhost", "root", "", "paycodex_codex");

if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

echo "Connected to database 'paycodex_codex'<br><br>";

// Show all tables
$result = $conn->query("SHOW TABLES");
if ($result) {
    echo "Tables in 'paycodex_codex' database:<br>";
    while ($row = $result->fetch_array()) {
        echo "- " . $row[0] . "<br>";
    }
} else {
    echo "Error: " . $conn->error;
}
?>
