I want to have a different include on a page according to the user’s choice and if there is no choice, the date. The part with cookies to change the included php works, but the page is totally ignoring the date. I want it to be in that order, first considering if the user has made a choice and then if not, it will assign an include depending on the date. The choices are in order, I want the code to stop once it finds a choice that fits and just go with that, so I used “if else”, as there can be more than one choice that is true, thus I thought it might not work with “switch case”. Here’s what I have, the cookies work, but the lines dealing with the date are ignored. I tried putting the day in a variable, but it didn’t make a difference.
I am pleased we were able to help, we have all been there to get the T-Shirts
As mentioned using error_reporting and display errors usually screams when errors and warnings are encountered. Having a blank screen without notifications makes it difficult to debug.
Not in a string unless explicitly declaring that it is octal (e.g. by specifying the base in a function call). More likely is the developer mistaking it for octal.