Skip to content

Instantly share code, notes, and snippets.

@hquach
Created November 9, 2018 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hquach/e9e58c8ac25d8710f5ecf224baffa275 to your computer and use it in GitHub Desktop.
Save hquach/e9e58c8ac25d8710f5ecf224baffa275 to your computer and use it in GitHub Desktop.
<?php
$host = ""; /* Host name */
$user = ""; /* User */
$password = ""; /* Password */
$dbname = ""; /* Database name */
$con = mysqli_connect($host, $user, $password,$dbname);
// Check connection
if (!$con) {
die("Connection failed: " . mysqli_connect_error());
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment