Centralize database configuration for _website folder
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
b52f1960f6
commit
490b35c556
3 changed files with 52 additions and 4 deletions
|
|
@ -1,10 +1,14 @@
|
|||
|
||||
text/x-generic _db.php ( PHP script, ASCII text, with CRLF line terminators )
|
||||
<?php
|
||||
$servername = "panel.iaregamer.com";
|
||||
$username = "remoteuser";
|
||||
$password = "Pkloyn7yvpht!";
|
||||
$dbname = "panel";
|
||||
// Include the centralized database configuration
|
||||
require_once(__DIR__ . '/includes/config.inc.php');
|
||||
|
||||
// Use the configuration variables from config.inc.php
|
||||
$servername = $db_host;
|
||||
$username = $db_user;
|
||||
$password = $db_pass;
|
||||
$dbname = $db_name;
|
||||
|
||||
// Create connection
|
||||
$db = mysqli_connect($servername, $username, $password, $dbname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue