mirror of
https://github.com/Alvin-Zilverstand/school.git
synced 2026-11-27 00:33:03 +01:00
add challenge 13
This commit is contained in:
1 parent
52a0aa5cda
commit
7218a44233
23 files changed
+992
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?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");
|
||||
Reference in new issue
Block a user