"; PRINT ""; if($aquery) { $query=stripslashes($aquery); } //else { $query = "SELECT * FROM agreements WHERE 1 $tablequery $andquery"; } else { $query = "SELECT * FROM agreements WHERE 1 $andquery"; } ?>