Warning: mysql_fetch_array() expects parameter 1 to be resource, object given in ..../gallery.php on line 62

    Warning: mysql_num_rows() expects parameter 1 to be resource, object given in ..../gallery.php on line 87

    Warning: mysql_fetch_assoc() expects parameter 1 to be resource, object given in ..../gallery.php on line 89