mysql_fetch_array & num_rows errors-Help!
<p>Can anyone tell me why I am recieving these errors when I do this??? </p>

<pre><code>   Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\login\index.php on line 63

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\login\index.php on line 65
</code></pre>

<p>When I do this::</p>

<pre><code>    $sql="SELECT id FROM users WHERE username='$myusername' and password='$mypassword'";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
$active=$row['active'];
$count=mysql_num_rows($result);
</code></pre>
