title: Warning: mysqli_num_rows() expects exactly 1 parameter, 2 given | mysql |mysqli
body: <p>i have code like this in mysql_query , works fine. 
  but i moving all the code to mysqli_ its throw error like in the title</p>
  
  <p>mysql</p>
  
  <pre><code>$count = mysql_query("SELECT COUNT(*) FROM xxx limit 2") or die(mysql_error());
        $count = mysql_result($count,0);
        for($i=0; $i&lt;$count;$i++){
          echo '&lt;li data-target="#transition-timer-carousel" data-slide-to="'.$i.'"'; if($i==0){ echo 'class="active"'; } echo '&gt;&lt;/li&gt;';
        }
  </code></pre>
  
  <p>mysqli</p>
  
  <pre><code>   $count = mysqli_query($con,"SELECT COUNT(*) FROM xxx limit 2") or die(mysqli_error());
        $count = mysqli_num_rows($count,0);
        for($i=0; $i&lt;$count;$i++){
          echo '&lt;li data-target="#transition-timer-carousel" data-slide-to="'.$i.'"'; if($i==0){ echo 'class="active"'; } echo '&gt;&lt;/li&gt;';
        }
  </code></pre>
  
  <p>pls help ..
  editt.
  this code for</p>
  
  <p>work : <a href="http://www.imagebam.com/image/830cf2469802470" rel="nofollow">http://www.imagebam.com/image/830cf2469802470</a> in mysql_</p>
  
  <p>not working : i already did the mysqli_num_rows ($count); <a href="http://www.imagebam.com/image/a32c87469802459" rel="nofollow">http://www.imagebam.com/image/a32c87469802459</a></p>
  
  <p>this code for counting this : <a href="http://www.imagebam.com/image/f8a0b9469803871" rel="nofollow">http://www.imagebam.com/image/f8a0b9469803871</a> see the red</p>