INF.03-01-25.01-SG/config/database.php
baiobelfer 2e8961f0cb feat: add database integration and dynamic product listing
Co-authored-by: aider (openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
2025-09-08 15:23:40 +02:00

14 lines
469 B
PHP

<?php
$host = 'localhost';
$dbname = 'shoe_store'; // Replace with your database name
$username = 'root'; // Replace with your database username
$password = ''; // Replace with your database password
try {
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $username, $password);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
die("Database connection failed: " . $e->getMessage());
}
?>