I'm new to php ,trying to solve my issue(connecting with database at line 12) over here please help...!! seen similar questions over here but they haven't helped me..!! my code is as follows:
<?php
session_start();
// variable declaration
$username = "";
$password ="";
$db='register';
// connect to database
$db = mysqli_connect('localhost', '$username','$password', 'register') or die("unable to connect");
?>