Dateien hochladen nach „“
...
This commit is contained in:
16
db_config.php
Normal file
16
db_config.php
Normal 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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user