Skip to content

Instantly share code, notes, and snippets.

View seanwittmeyer's full-sized avatar

seanwittmeyer seanwittmeyer

View GitHub Profile
@seanwittmeyer
seanwittmeyer / db-connect-test.php
Created August 27, 2018 19:02 — forked from M165437/db-connect-test.php
Script for a quick PHP MySQL DB connection test.
<?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'");