Possible Duplicate:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in
ERROR -> Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in
$sql = "SELECT * FROM pictures WHERE filename=$filename";
//makes a query to the database using the question in variable sql.
$result = mysql_query($sql);
ERROR ->if(!($row = mysql_fetch_array($result)))
{
//code.......
I don't get it, what am I doing wrong, there is nothing wrong about the parameter...