Выдает Такую Ошибку в чем проблема?)
Fatal error: Uncaught TypeError: mysqli_fetch_array(): Argument #1 ($result) must be of type mysqli_result, bool given in D:\OpenServer\domains\localhost\auth\postsignin.php:13 Stack trace: #0 D:\OpenServer\domains\localhost\auth\postsignin.php(13): mysqli_fetch_array() #1 {main} thrown in D:\OpenServer\domains\localhost\auth\postsignin.php on line 13
<?php
include '../db/db.php';
$username = $_POST['username'];
$password = $_POST['password'];
$passwordhash = md5($password);
$query = "SELECT * FROM `users` WHERE username = '$username' AND password = '$passwordhash')";
$query1 = mysqli_query($connect,$query);
$result = mysqli_fetch_array($query1);
if($result !== NULL){
die("Пользователь найден можно войти");
// $_SESSION['auth'] = $result;
}else{
die("пользователь Не найден");
}
?>