Getting PHP Error while sending query to database
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11674312/warning-mysql-fetch-expects-parameter-1-to-be-resource-boolean-given-error">Warning: mysql_fetch_* expects parameter 1 to be resource, boolean given error</a>  </p>
</blockquote>



<p>I keep getting this error;</p>

<pre><code>Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in 
</code></pre>

<p>I checked other questions and their answer and couldn't figure it out. My query works fine when I do it from phpmyadmin with any number in $number. But like this it doesn't work.</p>

<pre><code>$editquery = mysql_query("select * from content where no='$number' LIMIT 1");
$row = mysql_fetch_array($editquery);
echo $row[0]; // 42
echo $row[1]; // the email value
</code></pre>

<p>One extra question which one is better <code>mysql_fetch_array</code> or <code>mysql_fetch_row</code>?</p>
