Skip to content

Instantly share code, notes, and snippets.

@cesarkohl
Created February 25, 2015 00:39
Show Gist options
  • Save cesarkohl/d3462d50def4127088f4 to your computer and use it in GitHub Desktop.
Save cesarkohl/d3462d50def4127088f4 to your computer and use it in GitHub Desktop.
mysqli connect
$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