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
You dont need a separate function for select database in mysqli function,
The below method is more than enough to connect and select the database,
// Connect to server and select databse.
$conn = mysqli_connect($host, $username, $password,$db_name)or die("cannot connect");
doc: http://php.net/manual/en/mysqli.select-db.php