title: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in
body: <pre><code>&lt;?php
  require_once("connect.php");
  
  $login1 = $_POST['email'];
  $password1 = $_POST['password'];
  $select = "SELECT id FROM loginregistration WHERE login ='$login1', password   ='$password1'";
  $sql = mysqli_query($con,$select);
  $row = mysqli_fetch_assoc($sql);
  ?&gt;`
  </code></pre>
  
  <p>it seems that my mysqli_query doesn't work ,what should i do?</p>