<?php
include("../config.php");

// Check database connection
if (!isset($condb) || !$condb) {
    die("Database connection failed. Please check your configuration.");
}

echo "<h2>Logs Table:</h2>";
$logs_query = mysqli_query($condb, "SELECT * FROM logs");
if (!$logs_query) {
    echo "Error querying logs table: " . mysqli_error($condb);
} else {
    echo "<pre>";
    while($row = mysqli_fetch_assoc($logs_query)) {
        print_r($row);
    }
    echo "</pre>";
}

echo "<h2>Bot Table:</h2>";
$bot_query = mysqli_query($condb, "SELECT * FROM bot");
if (!$bot_query) {
    echo "Error querying bot table: " . mysqli_error($condb);
} else {
    echo "<pre>";
    while($row = mysqli_fetch_assoc($bot_query)) {
        print_r($row);
    }
    echo "</pre>";
}
?> 