Hi . I installed the latest version of wamp software. I can't connect to the database or table that I made and send message 1049.
<?php
;
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "a";
$connection = @mysqli_connect($dbhost,$dbuser,$dbpass,$dbname);
if(mysqli_connect_errno()) {
die("database connection failed : " . " " . mysqli_connect_error() . " (" . mysqli_connect_errno().")"
);
}
?>
//////////////////////
not condatabase connection failed : Unknown database 'a' (1049)
<?php
;
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "a";
$connection = @mysqli_connect($dbhost,$dbuser,$dbpass,$dbname);
if(mysqli_connect_errno()) {
die("database connection failed : " . " " . mysqli_connect_error() . " (" . mysqli_connect_errno().")"
);
}
?>
//////////////////////
not condatabase connection failed : Unknown database 'a' (1049)