Making 6 if staments in side 1 if stament

beachfmembapor

New Member
Hello i need to make a script were there is 7 if stament's in total. So if 1 of the 7 is false then it would do the else .Would this work ?\[code\] if ($x == 10) { echo "I have $x dollars"; if ($x == 10) {if ($x == 10) {if ($x == 10) {if ($x == 10) {if ($x == 10) {if ($x == 10) {}}}}}}}\[/code\]Would that work ?Or would i need to do t like this\[code\] if ($x == 10) { echo "I have $x dollars"; } if ($x == 10) { echo "I have $x dollars"; } if ($x == 10) { echo "I have $x dollars"; } if ($x == 10) { echo "I have $x dollars"; } if ($x == 10) { echo "I have $x dollars"; } if ($x == 10) { echo "I have $x dollars"; } if ($x == 10) { echo "I have $x dollars"; }else{echo "You do not have the monsters";}\[/code\]I need it so if all 7 if staments are true then it will do a mysql update but if one of them are not true then it will do the else instead...
 
Top