title: After upgrading XAMPP 5.6 to XAMPP 7.2, I have --> Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in
body: <p>I have a problem with my result on PHP code after upgrading the XAMPP 5.6 to XAMPP 7.2. in my MacPro.
  What is an adjustment to fix the code in PHP script? because they gave me a warning: </p>
  
  <blockquote>
    <p>Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result,
    boolean given in ...</p>
  </blockquote>
  
  <p>My code: </p>
  
  <pre><code>&lt;?php
  
  include ("../inc/link.php");
  
      $alert  =   "none";
  
      if(isset($_POST["btn-login"]))  {
      //echo "Run Action Of Form Login";
  
      //echo $_POST["username"];
      //echo $_POST["password"];
  
      $username   = $_POST["username"];
      $password   = $_POST["password"];
      $query          =   mysqli_query($conex,"SELECT * FROM table_admin  WHERE adm_name='".$username."' AND adm_password='".md5($password)."' "); 
      $count          = mysqli_num_rows($query);
  
      echo        $count;
  
  }
  
  ?&gt;
  </code></pre>