Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Database connection
- // Database global constants
- /*
- defined('DB_SERVER') ? null : define("DB_SERVER", "localhost");
- defined('DB_USER') ? null : define("DB_USER", "database_user");
- defined('DB_PASS') ? null : define("DB_PASS", "database_password");
- defined('DB_NAME') ? null : define("DB_NAME", "database_name");
- */
- $server = "localhost";
- $user = "database_user";
- $password = "database_password";
- $dbname = "database_name";
- // Test if connection succeeded
- if($db_connection->connect_errno()) {
- die("Database connection failed: " .
- $db_connection->connect_error() .
- " (" . $db_connection->connect_errno() . ")"
- );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment