This commit is contained in:
Jester
2026-01-19 08:35:00 +03:00
parent cbbc605336
commit 55b3d5f088
27 changed files with 183 additions and 841 deletions

16
config/db.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
$host = 'localhost';
$dbname = 'users';
$username = 'root';
$password = 'RUS4t8pm!@#';
try {
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8mb4", $username, $password);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
die("Ошибка подключения: " . $e->getMessage());
}
?>