Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   [ViP] MYSQLi Extension (http://www.bvlist.com/showthread.php?t=12436)

BamBam0077 21st October 2021 16:10

[ViP] MYSQLi Extension
 
PHP Code:

<?php
/* Database credentials. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
define('DB_SERVER''localhost');
define('DB_USERNAME''root');
define('DB_PASSWORD''');
define('DB_NAME''demo');
 
/* Attempt to connect to MySQL database */
$link mysqli_connect(DB_SERVERDB_USERNAMEDB_PASSWORDDB_NAME);
 
// Check connection
if($link === false){
    die(
"ERROR: Could not connect. " mysqli_connect_error());
}
?>



All times are GMT +2. The time now is 03:36.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2022, vBulletin Solutions Inc.