почему не могу подключить mysql
code:
code:
PHP:
<html lang="en">
<head>
<meta charset="UTF-8">
<title>LessionPage</title>
</head>
<body>
<?php
$connect = mysqli_connect('localhost','root','', 'login&pass');
if (!$connect) {
echo "db doesnt exist";
exit();
}
$query ="SELECT * FROM `userdata` WHERE 1";
$result = mysqli_query($connect, $query) or die("Ошибка " . mysqli_error($link));
if($result){
echo "найс! \n";
}
?>