<?php  

$sname = "localhost";
$uname = "root";
$password = "";

$db_name = "qrcode";

$conn = mysqli_connect($sname, $uname, $password, $db_name);

if (!$conn) {
	echo "Connection failed!";
	exit();
}