mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-06 13:26:27 +01:00
Add configuration, order processing, and item retrieval functionality
This commit is contained in:
15
website/config.php
Normal file
15
website/config.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user