Skip to content

Instantly share code, notes, and snippets.

@hackerrahul hackerrahul/db.php
Created May 26, 2018

Embed
What would you like to do?
<?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
You can’t perform that action at this time.