Fix: 500 error(DB logic) and Geolocation timeout issue
This commit is contained in:
12
output/debug_schema.php
Normal file
12
output/debug_schema.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$_SERVER['DOCUMENT_ROOT'] = 'c:/Users/light/sam/5130';
|
||||
require_once 'c:/Users/light/sam/5130/lib/mydb.php';
|
||||
try {
|
||||
$pdo = db_connect();
|
||||
$stmt = $pdo->query("SHOW COLUMNS FROM output LIKE 'num'");
|
||||
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
print_r($row);
|
||||
} catch (Exception $e) {
|
||||
echo "Error: " . $e->getMessage();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user