query("SELECT * FROM company_settings LIMIT 1"); $settings = $stmt->fetch(PDO::FETCH_ASSOC); echo "

Debug Settings

"; echo "
";
    print_r($settings);
    echo "
"; if ($settings) { echo "whatsapp_report_enabled: " . var_export($settings['whatsapp_report_enabled'], true) . "
"; echo "whatsapp_report_number: " . var_export($settings['whatsapp_report_number'], true) . "
"; } else { echo "No settings found in database."; } } catch (Exception $e) { echo "Error: " . $e->getMessage(); }