mirror of
https://github.com/foin137/werwolfonline.eu.git
synced 2025-12-12 03:11:35 +00:00
Create includes.example.php
Create includes.example.php as an example for includes.php
This commit is contained in:
21
includes/includes.example.php
Normal file
21
includes/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