# chatbot/8.8.1/addons/automator/scratch/check_db.php

WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services, version 8.8.1. 16 lines.

- Page: https://pluginprobe.com/plugins/chatbot/8.8.1/code/addons/automator/scratch/check_db.php
- Raw: https://pluginprobe.com/plugins/chatbot/8.8.1/raw/addons/automator/scratch/check_db.php
- Modified: 2026-09-28T11:58:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/chatbot/8.8.1/code/addons/automator/scratch/check_db.php#L10-L20`.

```php
<?php
require_once '../../../wp-load.php';
global $wpdb;
$table = $wpdb->prefix . 'wpbot_automator_email_templates';
echo "Checking table: $table\n";
$exists = $wpdb->get_var("SHOW TABLES LIKE '$table'");
if ($exists) {
    echo "Table EXISTS\n";
    $columns = $wpdb->get_results("DESCRIBE $table");
    foreach ($columns as $col) {
        echo "Field: {$col->Field}, Type: {$col->Type}\n";
    }
} else {
    echo "Table DOES NOT EXIST\n";
}

```
