how would i use 2 if statements? i tried using && but it wouldnt work. :(
like:
if (yo!==yo)
if (yogfhf!=yoh)

how would i use 2 if statements? i tried using && but it wouldnt work. :(
like:
if (yo!==yo)
if (yogfhf!=yoh)

Hmm. These will work. (oh, and && should work btw.)

if($yo==5 && $test=="lala"){
   echo "passed";
}

or

if($yo!=5 && $test=="blue"){
   echo "passed";
}

or

if($yo==5){
   echo "yo is 5";
}elseif($yo==10){
   echo "yo is 10";
}else{
   echo "yo is neither 5 or 10";
}

thanks dude! srry i know what i did wrong i put the parantheses in between them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.