Skip to content

Instantly share code, notes, and snippets.

@ryanapil
Created Jan 23, 2019
Embed
What would you like to do?
MySQLi Connection File
<?php
$mysqli = new mysqli($var["database"]["hostname"], $var["database"]["username"], $var["database"]["password"], $var["database"]["database"]);
if ($mysqli->connect_error) {
die("Connect Error (" . $mysqli->connect_errno . ") " . $mysqli->connect_error);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment