How to make a form to send authorization?

Error:Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /storage/emulated/legacy/htdocs/circle.php on line 12;
Code:
<?php
echo "Your username: ". $_GET["username"]."<br>";
echo "Your password: ".$_GET["password"];
$db = mysqli_connect('localhost', 'root',", 'Page');
if($db == false){
echo mysqli_connect_error();
exit();
}
$login = $_GET["username"];
$password = $_GET["password"];
$count = mysqli_query($db, "SELECT * FROM 'Users' WHERE 'login' = '$login' AND 'password' = '$password'");
if(mysqli_num_rows($count) == 0){
echo "You aren't signed";
}else{
echo "You are signed";
}
?>
March 19th 20 at 08:52
1 answer
March 19th 20 at 08:54
The documentation says Returns FALSE in case of failure. Following this, the request fails.
What to make that earned - katherine.Grady commented on March 19th 20 at 08:57
@katherine.Grady, you are waiting for someone to fix it for you, you then in an hour a new query with a question here please? - trudie_Thiel4 commented on March 19th 20 at 09:00
@katherine.Grady,
$query = sprintf("SELECT * FROM `Users` WHERE `login` = '%s' AND `password` = '%s'"),
mysql_real_escape_string($login),
mysql_real_escape_string($password));

// Execute the query
$result = mysqli_query($query);
if($result) {
//here we write all the necessary actions
} else {
 echo mysqli_error($db);
}
- brannon.Hermiston14 commented on March 19th 20 at 09:03
@brannon.Hermiston14, Users also in single? Copy-paste)) - trudie_Thiel4 commented on March 19th 20 at 09:06
@trudie_Thiel4not noticed) - brannon.Hermiston14 commented on March 19th 20 at 09:09
@brannon.Hermiston14, what I wrote at the top of utuber of Chaudi Ho earned and why should I not? - katherine.Grady commented on March 19th 20 at 09:12
@katherine.Grady, do Not watch Chaudi Ho - brannon.Hermiston14 commented on March 19th 20 at 09:15

Find more questions by tags SQLPHP