mirror of
https://github.com/foin137/werwolfonline.eu.git
synced 2025-12-29 03:31:22 +00:00
Upload of the files
Added the already existing files to the repository
This commit is contained in:
21
includes.example.php
Normal file
21
includes.example.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
$id = "id"; // Ihre ID zum MySQL Server
|
||||
$pw = "pw"; // Passwort zum MySQL Server
|
||||
$host = "localhost"; // Host ("localhost" oder "IP-Adresse")
|
||||
$db = "werwolf"; // Name Ihrer Datenbank
|
||||
$mysqli = new MySQLi(
|
||||
$host,
|
||||
$id,
|
||||
$pw,
|
||||
$db
|
||||
);
|
||||
|
||||
if (mysqli_connect_errno()) {
|
||||
/*printf(
|
||||
"Can't connect to MySQL Server. Errorcode: %s\n",
|
||||
mysqli_connect_error()
|
||||
);*/
|
||||
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user