Php Get Url Path Without Query Sql Definition Of Table