Thread: else problem
View Single Post
Old 11-11-2008, 05:25 PM   #3 (permalink)
xenon
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

yeah, you should TEST the conditions, and not make assignments. therefore...

PHP Code:
if($a 'b'
will become:

PHP Code:
if($a == 'b'
Also, you should use the OR operand ( || ) instead of the keyword or, because it has greater precedence.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote