Create MySQL query from URL GET parameters [duplicate]
问题 This question already has answers here : Using URL parameters in MYSQL search (4 answers) Closed 5 years ago . hey i am a beginner in PHP and MYSQL, i am stuck with a basic problem. How can i make my query from URL parameters MY URL EXAMPLES: www.abs.com/index.php?cat=shoes www.abs.com/index.php?cat=shoes&subcat=sports www.abs.com/index.php?cat=shoes&subcat=sports&color=blue How can i handle this kind of URL's in my query, that is just my example query, i have a large set of fields for both