title: mysql_num_rows() Error
body: <pre><code>&lt;?php
  $id=$_GET['id'];
  $username="xxx";
  $password="xxx";
  $database="xxx";
  $host="xxx";
  mysql_connect($host,$username,$password);
  $con = mysql_connect("$host","$username","$password");
  
  $id=$_POST['ID'];
  $query="SELECT * FROM vbots WHERE ID=$id";
  $result = mysql_query("SELECT * FROM vbots");
  $num=mysql_query($result,$con) or die("Error: ". mysql_error(). " with query ". $query);
  mysql_close();
  </code></pre>
  
  <p>I keep getting </p>
  
  <blockquote>
    <p>Error: Query was empty with query
    SELECT * FROM vbots WHERE ID=1"</p>
  </blockquote>
  
  <p>How can i fix that?
  I get it from mysql_num_rows() , wrote <code>die("Error: ". mysql_error(). " with query ". $query);</code> for more info .</p>
  
  <p>Thank you !</p>