Skip to content

Instantly share code, notes, and snippets.


Đặng Xuân Cảnh uncelvel

Block or report user

Report or block uncelvel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chales / db-connect-test.php
Last active Aug 3, 2019
Script for a quick PHP MySQL DB connection test.
View db-connect-test.php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
You can’t perform that action at this time.