I have a problem. I did not understand exactly what the problem is. I tried more than one way but I could not find the solution. I think this is the right place. I hope someone will help me.
if(isset($login)){
if(empty($adminMail) || empty($adminPass)){
echo "<div class='alert alert-danger'>"."Please enter your username and password "."</div>";
}
else{
$query="SELECT * FROM admin WEHRE email=$adminMail AND password=$adminPass";
$result= mysqli_query($conn,$query);
$row = mysqli_fetch_assoc($result);
echo $row['email'];
}
}