Making 6 if staments in side 1 if stament
<p>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 .</p>

<p>Would this work ?</p>

<pre><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></pre>

<p>Would that work ?Or would i need to do t like this</p>

<pre><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></pre>

<p>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...</p>
