title: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/795746/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result">Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result</a>  </p>
  </blockquote>
  
  
  
  <p>I' really stuck on this , I'm gettiing this error:
  mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in "filename"</p>
  
  <p>Here is the code:</p>
  
  <pre><code> $sql = "SELECT * FROM $tbl_name WHERE....
   $result=mysql_query($sql);
   $row = mysql_fetch_assoc($result);
  </code></pre>
  
  <p>The wierd thing is that I've used the exact same code before and it worked fine </p>
  
  <p>Any ideas??</p>