mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-06 13:26:27 +01:00
16 lines
350 B
PHP
16 lines
350 B
PHP
<?php
|
|
$servername = "localhost:3306";
|
|
$username = "database";
|
|
$password = "13cAv?i52";
|
|
$dbname = "schoolkantine";
|
|
$port = 3306; // Specify the port
|
|
|
|
// Create connection
|
|
$conn = new mysqli($servername, $username, $password, $dbname, $port);
|
|
|
|
// Check connection
|
|
if ($conn->connect_error) {
|
|
die("Connection failed: " . $conn->connect_error);
|
|
}
|
|
?>
|