Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 21st October 2021, 16:10
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Senior Member
 
Join Date: Jul 2013
P2P
Posts: 342
Default [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());
}
?>
__________________
https://www.seedbox.io
https://www.vultr.com/
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 22:25. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2021, vBulletin Solutions Inc.