Created
January 23, 2019 09:56
-
-
Save ryanapil/2eda8c3978315524cc228384daf5a41e to your computer and use it in GitHub Desktop.
MySQLi Connection File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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