php script that we using for query