service 2

This commit is contained in:
Hamza-Ayed
2026-05-02 14:34:52 +03:00
parent ed5c51a5e5
commit 02a16f0ca0
2 changed files with 13 additions and 2 deletions

10
serviceapp/check_db.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
require_once __DIR__ . '/../connect.php';
try {
$stmt = $con->prepare("DESCRIBE users");
$stmt->execute();
$columns = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($columns);
} catch (Exception $e) {
echo json_encode(['error' => $e->getMessage()]);
}