Files
sam-sales/debug_db.php

15 lines
417 B
PHP
Raw Normal View History

2025-12-30 21:34:17 +09:00
<?php
require_once("lib/mydb.php");
$pdo = db_connect();
echo "--- sales_tenant_scenarios structure ---\n";
$stmt = $pdo->query("DESC sales_tenant_scenarios");
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
print_r($row);
}
echo "--- sales_tenant_scenarios data ---\n";
$stmt = $pdo->query("SELECT * FROM sales_tenant_scenarios LIMIT 10");
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
print_r($row);
}
?>