17 lines
444 B
PHP
17 lines
444 B
PHP
|
<?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();
|
||
|
}
|
||
|
|
||
|
|