I’m making a search in PHP and for a specific field I need to search one or more variable possible values. Eg. I need to display results of people with “Black” and “Red” hair (and my variable is “hair”). At this time I only know how to do it with one value. Eg.
...search.php&hair=black
Thank you!
You can turn
$_GET['hair']into an array by using square brackets ([]):$_GET['hair']value: