Possible Duplicate:
PHP: Warning: sort() expects parameter 1 to be array, resource given
I get the error:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\allthewaytthroughmyfolders\www\filterresultaat.php on line 103
while ($regel = mysql_fetch_array ($filterres))
{
echo
'<tr>
<td>'
.$regel['Opleiding'].
'</td>
<td>'
.$regel['S_datum'].
'</td>
<td>'
.$regel['Duur'].
'</td>
<td>'
.$regel['omschrijving'].
'</td>
<td>'
.$regel['vergoeding'].
'</td>
<td>'
.$regel['Stad'].
'</td>
<td>'
.$regel['Straat'].
'</td>
<td>'
.$regel['Huisnr'].
'</td>
<td>'
.$regel['postcode'].
'</td>
<td>'
.$regel['land'].
'</td>
<td>'
.$regel['contactpersoon'].
'</td>
</tr>';
}
which is strange since it was working an hour ago.
can anybody help?
EDIT:
if (isset($opleiding))
{ $opleidingq = 'opleiding = "'.$opleiding.'" and'; }
if (isset($duur))
{
if( $duur = 30)
{
$duurq = ' ';
}
else
{
$duurq= 'duur= "'.$duur.'" and';
}
}
else
{ $duurq = ' ';
}
if (isset($type))
{ $typeq= 'type= "'.$type.'" and'; }
$filter = "SELECT * FROM opdracht WHERE $opleidingq $duurq $typeq gevuld ='nee';";
//mysql_query($filter);
$filterres = mysql_query($filter);