Dateien hochladen nach „“

...
This commit is contained in:
2023-01-08 23:58:21 +01:00
parent 2e41195d49
commit 143c969250
5 changed files with 100 additions and 0 deletions

16
db_config.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: PUT, GET, POST, DELETE");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
const DB_USER = "root";
const DB_PASSWORD = "";
const DB_DATABASE = "bildungsdb";
const DB_HOST = "localhost";
$mysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
if(mysqli_connect_errno()){
echo mysqli_connect_error();
}