im a beginner and also a diploma student... i have created database using localhost... im having problem viewing my database... please help me... i hope u can help me with a
If you check the php manual here: http://php.net/manual/fr/mysqli.select-db.php
You will see the function mysqli_select_db
take two params in input.
bool mysqli_select_db ( mysqli $link , string $dbname )
So you should have
// Connect to server and select databse.
$conn = mysqli_connect($host, $username, $password) or die("cannot connect");
mysqli_select_db($conn, $db_name) or die("cannot select DB");