الخطأ ::
Warning: mysqli_query() expects parameter 1 to be mysqli, bool given in D:\xampp\htdocs\server\colleg project\login.php on line 13
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in D:\xampp\htdocs\server\colleg project\login.php on line 13
الكود::
<?php
if(isset($_POST['logbtn'])){
$pass = '';
$dbname = 'lb';
$host = 'localhost';
@$conn = mysqli_connect($host,$username,$pass,$dbname);
$emm = $_POST['emaillog'];
$ppas = $_POST['passlog'];
$q = "SELECT * FROM test WHERE Email='$emm' && password='$ppas'";
if(mysqli_num_rows(mysqli_query($conn, $q)) > 0){
echo 'finaly done';
}else{
echo 'no';
}
}
?>