22 lines
642 B
PHP
22 lines
642 B
PHP
<?php
|
|
require_once 'db/config.php';
|
|
|
|
try {
|
|
$db = db();
|
|
$stmt = $db->query("SELECT * FROM company_settings LIMIT 1");
|
|
$settings = $stmt->fetch(PDO::FETCH_ASSOC);
|
|
|
|
echo "<h1>Debug Settings</h1>";
|
|
echo "<pre>";
|
|
print_r($settings);
|
|
echo "</pre>";
|
|
|
|
if ($settings) {
|
|
echo "whatsapp_report_enabled: " . var_export($settings['whatsapp_report_enabled'], true) . "<br>";
|
|
echo "whatsapp_report_number: " . var_export($settings['whatsapp_report_number'], true) . "<br>";
|
|
} else {
|
|
echo "No settings found in database.";
|
|
}
|
|
} catch (Exception $e) {
|
|
echo "Error: " . $e->getMessage();
|
|
} |