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