Skip to content

Instantly share code, notes, and snippets.



Created May 26, 2018
What would you like to do?
$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
You can’t perform that action at this time.