Skip to content

Instantly share code, notes, and snippets.

@hackerrahul
Created May 26, 2018 16:52
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 hackerrahul/96caee90e4575ffd0b415d917f3f1f7c to your computer and use it in GitHub Desktop.
Save hackerrahul/96caee90e4575ffd0b415d917f3f1f7c to your computer and use it in GitHub Desktop.
<?php
$servername = "localhost";
$username = "root";
$password = "";
$db = "infinite_scrolling";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $db);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment