Skip to content

Instantly share code, notes, and snippets.

Michael Schmidt-Voigt M165437

Block or report user

Report or block M165437

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
@M165437
M165437 / db-connect-test.php
Last active Oct 21, 2019 — forked from chales/db-connect-test.php
Script for a quick PHP MySQL DB connection test.
View db-connect-test.php
<?php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
You can’t perform that action at this time.