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!
I've used echo elsewhere in this script to double check the values being compared, and they both appear to contain the same value (2011-01 in this case)
Ok, tried that...it didn't work, so I echoed the statement, which returned 1. I assume that means that the statement is true, so maybe I have something wrong with how my if/else statements are nested. Is there something wrong here?
I don't see anything wrong, but then again, I don't know what it's supposed to do. Try echoing something random inside of the problematic if statement, just to make sure.
The variables in the 2nd if statement were being overwritten by the else statement for some reason. I solved it by just declaring the variables to begin with, followed by the if statements, which will change the variables if needed.
I don't know if this is the *correct* solution, but it works