Hi guys, I have a list of if statements for a search on my site. What im wondering is if this is possible if ($x==' ' && $y==' ' && isset($z)) { ///////// do mysql query } Code (markup): Also tried it like this if ($x==' ' && ($y==' ' && isset($z))) { ///////// do mysql query } Code (markup): Hope somebody can help. Cheers!
cheers for the response, it seems to be a problem when i have this function get_results($x, $y, $z){ if ($x==' ' && $y==' ' && isset($z)) { ///////// do mysql query } elseif ($x==' ' && $y==' ') { ///////// do mysql query } } Code (markup): Anybody any ideas? Cheers
What is the problem exactly? You'll have to tell us. Additionally, $z is always set as it's an argument to your function. You should probably use !empty($z)