Porządki

This commit is contained in:
2026-05-25 14:02:42 +02:00
parent a925246df1
commit e95d679394
18 changed files with 152 additions and 35 deletions

20
config/database.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
// config/database.php
$serverName = '192.168.20.20';
$connectionOptions = [
'Database' => 'Gastro',
'Uid' => 'sa',
'PWD' => 'karczma!@#26',
'CharacterSet' => 'UTF-8',
];
$conn = sqlsrv_connect($serverName, $connectionOptions);
if (!$conn) {
die(json_encode([
'status' => 'error',
'message' => 'Błąd połączenia z bazą danych.',
'errors' => sqlsrv_errors()
], JSON_UNESCAPED_UNICODE));
}