<?php
session_start();
$login = $_POST['login'];
$pass = $_POST['pass'];
$conn = new mysqli("localhost", "root", "", "prints");
if ($conn->mysqli_connect_error){
die("Ошибка: " . $conn->connect_error);
}
$check = mysqli_query($conn, "SELECT * FROM 'users' WHERE 'login' = '$login' AND 'pass' = '$pass");
if (!$check || mysqli_num_rows($check) == 0 ){
echo mysqli_num_rows($check);
}
?>
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\OSPanel\domains\damrn\th.php on line 14