title: Warning: mysql_num_rows() expects parameter 1 to be resource, object given
body: <pre><code>$q=&quot;SELECT * FROM tbl_quevote WHERE que_id = '&quot;.$qid.&quot;' and voteby='&quot;.$uid.&quot;'&quot;;
  
  $result = $mysqli-&gt;query($q) or die(mysqli_error($mysqli));
  $num_rows = mysql_num_rows($result);
  
  echo $num_rows;
  </code></pre>
  <p><strong>Error:</strong></p>
  <blockquote>
  <p>Warning: mysql_num_rows() expects parameter 1 to be resource, object given in C:\xampp\htdocs\shizin\voting.php on line 13</p>
  </blockquote>
  <p>How to check result is empty?</p>