1
ADODB check if MySQL connected
<?php
include ('classes/adodb.inc.php');
$dbdriver = 'mysqli';
$server = 'localhost';
$user = 'root';
$password = 'testpass';
$database = 'dbname';
$conn = ADONewConnection($dbdriver);
$conn->Connect($server, $user, $password, $database);
if (!$conn->isConnected()):
echo 'No Connected';
die();
else:
echo 'Connected';
endif;
?>
Interserver | Standard & VPS Cloud Hosting | $2.50 /Month
Flexible VPS hosting platform to deploy your online projects.
Economical and balanced between processor cores, memory and storage
rated 1 times
(1)
(0)
comments: 0 / hits: 564
/ 2 years ago, sat, may 1, 21, 05:53:49
More From
» PHP
Comments
There are no comments for this Snippet yet