Lately i have seen people doing
PHP Code:
if ( var == var ) {
echo "cock";
} else {
if {var == var) {
}
}
That is not very secure, and can cuase errors. So today we learn the elseif statement :D.
OK, it is very simple, first it needs an opening if statment.
PHP Code:
If ($Account == HotelUnder ) {
echo "hello HotelUnder";
}
So perhaps for another acount you wanted it to say something else
PHP Code:
If ( $Account == HotelUnder ) {
echo "hello HotelUnder";
} Elseif ( $Account == Mental. ) {
echo "Welcome God";
}
So that would be an alternate to doing
PHP Code:
if ( var == var ) {
echo "cock";
} else {
if {var == var) {
}
}
Hope it helped :D