I'm a simple man. I see mysql_fetch_array() expects parameter 1 to be resource, null given, I downvote.
mysql_fetch_array() expects parameter 1 to be resource, null given