When I run this code it works
if('a'=='b'){run some code}
but as soon as I add an or operator it runs the code every time whether there is a match or not.
if('a'=='b'||'c'){run some code}
The code now runs for all values of a.
The actual code that I am using is this
if($_GET['monthBefore']=='september_2007' || 'august_2007'){echo "<script> js</script>";}
Get does contain a string and the right one.
I have spent hours on this and am really puzzled.Hope the answer is not embarrassing.