hi im new in php im trying to create a log-in system but i got an error need your help guys
THIS IS MY LOGIN PROCESS
<?php
require 'connect.php';
$employeeno = $_POST['employeeno'];
$name = $_POST['name'];
if(isset($_POST['LOGIN']))
{
$query = "SELECT * FROM tbl_employee_information WHERE employeeno='$employeeno' AND name='$name'";
$query_run = mysqli_query($query,$db);
if(mysq_num_rows($query_run)>0)
{
$_SESSION['user']=$name;
header("location:employeeinfo.php");
}
else
{
}
}
?>
THIS IS MY MAIN PAGE
<form action="log-in_process.php" method="POST"> <div id="body"> <h1>Log-in</h1> <label>ID No:</label><br> <input type="password" name="employeeno"><br> <label>Name:</label><br> <input type="text" name="name"><br> <a><input name="LOGIN"type="submit" value="LOGIN" style="background-color:#32CD32;font-family:ebrima;color
:white;border-radius:5px;margin-left:105px;margin-top:20px;height:30px;width:100px;"></a> </div> </form>