Stand 17.02.2023
This commit is contained in:
14
admin/#config.php
Normal file
14
admin/#config.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
#error_reporting(0);
|
||||
define('DB_NAME', 'survey');
|
||||
define('DB_USER', 'root');
|
||||
define('DB_PASSWORD', '');
|
||||
define('DB_HOST', 'localhost');
|
||||
|
||||
// Create connection
|
||||
$db = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
|
||||
// Check connection
|
||||
if ($db->connect_error) {
|
||||
die("Connection failed: " . $db->connect_error);
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user