$con = mysqli_connect("localhost","kuchniac_xyz8675","Qn9NFKR73y","kuchniac_sklepy957751");
mysqli_set_charset($con, "utf8");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
//
//if($con = true){
// echo "Connection Succesful!";
//} else{
// die(mysqli_error);
//}
?>
Fatal error: Uncaught TypeError: mysqli_select_db(): Argument #1 ($mysql) must be of type mysqli, null given in /home/kuchniac/domains/solidnyregulamin.pl/public_html/143a9fe61a28982cfd9fb99bef0eb446/index.php:44
Stack trace:
#0 /home/kuchniac/domains/solidnyregulamin.pl/public_html/143a9fe61a28982cfd9fb99bef0eb446/index.php(44): mysqli_select_db()
#1 {main}
thrown in /home/kuchniac/domains/solidnyregulamin.pl/public_html/143a9fe61a28982cfd9fb99bef0eb446/index.php on line 44