0

When trying to connect to my DB in localhost I receive these errors:

Warning: mysqli_select_db() expects parameter 1 to be mysqli, bool given in C:\xampp\htdocs\A-14\01.php on line 10

Warning: mysqli_error() expects parameter 1 to be mysqli, bool given in C:\xampp\htdocs\A-14\01.php on line 10

And these are connection steps, it's get problematic in the second step when I put my DB's name in:

$dblink = mysqli_connect('localhost','root','') || die(mysqli_connect_error());

mysqli_select_db($dblink , "tst") or die(mysqli_error($dblink));

mysqli_query($dblink , "SET NAMES 'UTF8'");

What should I do?

Dharman
  • 30,962
  • 25
  • 85
  • 135

0 Answers0