bildungdb/api/db_config.php

17 lines
444 B
PHP
Raw Normal View History

2023-01-08 22:45:34 +01:00
<?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();
}