Created
February 25, 2015 00:39
-
-
Save cesarkohl/d3462d50def4127088f4 to your computer and use it in GitHub Desktop.
mysqli connect
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
$mysqli = new mysqli('localhost', 'root', 'root', 'register'); | |
if ($mysqli->connect_error) { | |
die('Connect Error ('.$mysqli->connect_errno.')'.$mysqli->connect_error); | |
}else{ | |
//printf ( 'Connect succeeded: %s', $mysqli->host_info ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment