saving . . . saved mysqli_select_db() is passing error has been deleted. mysqli_select_db() is passing error has been hidden .
mysqli_select_db() is passing error
Title
Question
Warning<span style="color: rgb(0, 0, 0); font-family: &quot;Times New Roman&quot;; font-size: medium;">: mysqli_select_db() expects exactly 2 parameters, 1 given in </span>C:\xampp\htdocs\connect.php<span style="color: rgb(0, 0, 0); font-family: &quot;Times New Roman&quot;; font-size: medium;"> on line </span>4
I got this error. How can I remove it? 

PHP-and-MySQL MySQL-Part-2 07-08 min 20-30 sec 26-08-20, 5:40 p.m. singhgourav899@gmail.com

Answers:

<?php
error_reporting(0);

$connect = mysqli_connect("localhost", "root", "") or die(mysqli_connect_error());
echo "Connected to MySQL <br>";

mysqli_select_db($connect, "spoken_tutorial_db") or die(mysqli_error());
echo "Connected Database !<br>";


The above code works. 2 paramets to function->  mysqli_select_db($connect, "spoken_tutorial_db")

12-05-21, 10:51 p.m. rmn123


Log-in to answer to this question.