If Statement Checking 2 strings at same time.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MIGO
Forum Newbie
Posts: 9
Joined: Mon Mar 02, 2009 3:13 pm

If Statement Checking 2 strings at same time.

Post by MIGO »

Hey guys, I would to ask you because I am getting this error: Parse error: syntax error, unexpected T_BOOLEAN_AND in ... on line 34

and I am using this code

Code: Select all

if[color=#BF0000]([/color]($nickname == $nickcheck) && ($clanname == clancheck)[color=#BF0000])[/color]
I know that the and is not like that but I would like to know how to do it.

Regards

edit:Problem solved, it was missing the red parts :D
Post Reply