This commit is contained in:
2024-06-12 15:26:27 +02:00
parent 28af5705ee
commit 8851ff41b4
19 changed files with 331 additions and 20 deletions

20
php/connect.inc.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
//How to connect to MySQL
$mysql_host = 'localhost';
$mysql_user = 'example_user';
$mysql_pass = 'Kolosnjaj4321!';
$conn_error = 'Could not connect to database!';
$mysql_db = 'example_database';
$con = mysqli_connect($mysql_host, $mysql_user, $mysql_pass);
if ($con) {
if (mysqli_select_db($con, $mysql_db)) {
} else {
die($conn_error);
}
}
?>