Unknown warning while updating field
<p>What sort of error is this, I mean while updating field if I use '', I am getting this error.</p>

<pre><code>Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files\xampp\htdocs\shadaab\aaction.php on line 87
</code></pre>

<p>ON 86-87 I have this query</p>

<pre><code>$result=mysql_query("SELECT name FROM album WHERE name='$name'");
if(mysql_num_rows($result)!=0)
</code></pre>
