I see that $query1 is not defined in the first PHP file.