I tried to make a login page for my project, but when I click on the Login button I get a message saying "This page isn’t working. website is currently unable to handle this request."(Chrome - HTTP ERROR 500). I carefully checked my login.php file, but I cannot seem to find where is the problem. This is the only file I have edited before the site crashed, so I am sure the problem is in my login.php file. Here's what's inside:
<?php
session_start();
include("connect.php");
$user=$_REQUEST['user'];
$password=$_REQUEST['pass'];
$status=0;
$qa="select * from Users where Username='"$user"' and
Password='"$password"')";
$rss= mysqli_query($conim,$qa);
$status= mysqli_num_rows($rss);
if ($status<1){
echo('<div style="padding:10px">Некоректни данни за вход!
<a href="../index.html">Обратно към сайта</a></div>');
exit;
}else{
header("Location: ../index.html");
exit;
}