This commit is contained in:
Hamza-Ayed
2026-04-30 17:29:33 +03:00
parent 2ca910ec32
commit b602106b79
2 changed files with 26 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
require_once 'connect.php';
try {
$stmt = $con->query("DESCRIBE users");
$cols = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($cols, JSON_PRETTY_PRINT);
} catch (Exception $e) {
echo $e->getMessage();
}
?>