mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 23:37:32 +00:00
Update database.php
This commit is contained in:
parent
015618bdb7
commit
f933641a8d
@ -1,8 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
$dbhost = 'localhost';
|
// Server host
|
||||||
$dbuser = 'root';
|
$dbhost = 'localhost';
|
||||||
$dbpass = 'password';
|
|
||||||
$conn = new mysqli($dbhost, $dbuser, $dbpass, 'litebans');
|
// Username/password
|
||||||
|
$username = 'root';
|
||||||
|
$password = 'password';
|
||||||
|
|
||||||
|
// Database name
|
||||||
|
$database = 'litebans';
|
||||||
|
|
||||||
|
$conn = new mysqli($dbhost, $username, $password, $database);
|
||||||
|
|
||||||
$table_prefix = "";
|
$table_prefix = "";
|
||||||
$table_bans = $table_prefix . "bans";
|
$table_bans = $table_prefix . "bans";
|
||||||
@ -10,7 +17,7 @@ $table_mutes = $table_prefix . "mutes";
|
|||||||
$table_warnings = $table_prefix . "warnings";
|
$table_warnings = $table_prefix . "warnings";
|
||||||
$table_history = $table_prefix . "history";
|
$table_history = $table_prefix . "history";
|
||||||
|
|
||||||
if($conn->connect_errno > 0){
|
if($conn->connect_errno > 0) {
|
||||||
die('Unable to connect to database [' . $conn->connect_error . ']');
|
die('Unable to connect to database [' . $conn->connect_error . ']');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user