I created a directory listing and came across this issue.
What value does mysql_query($query1) return if there is no value?
My script received this message from $result, would it be alright to pass array(0)?
Warning: mysql_fetch_array($result) expects parameter 1 to be resource, array given in