mirror of
https://github.com/Alvin-Zilverstand/school.git
synced 2026-03-06 03:06:33 +01:00
20 lines
517 B
PHP
20 lines
517 B
PHP
<?php
|
|
// =======================
|
|
// Database configuratie
|
|
// =======================
|
|
$host = "localhost";
|
|
$username = "root";
|
|
$password = ""; // XAMPP default on Windows is empty password
|
|
$database = "db_awfulportfolio"; // Use the database name, not the .sql file name
|
|
|
|
// Maak verbinding
|
|
$conn = new mysqli($host, $username, $password, $database);
|
|
|
|
// Check verbinding
|
|
if ($conn->connect_error) {
|
|
die("Verbinding mislukt: " . $conn->connect_error);
|
|
}
|
|
|
|
// Zorg voor juiste charset
|
|
$conn->set_charset("utf8mb4");
|