![]() |
Help with PHP "If" statement needed Hello, I am placing the following code in a wordpress post template. It works fine with either of the lines when used not as a variable or called in an if statement. However, when I add the if statement, and call the variables, the page does not load (dreaded white page syndrome). Can anyone tell me what I have missed, or how to correct the code? Code: <?php |
Re: Help with PHP "If" statement needed It is your "else" statement echo $date_alt_1; } // missing the close else { // your missing the open |
Re: Help with PHP "If" statement needed Is this better? Code: <?php |
Re: Help with PHP "If" statement needed Yep. Looks good. Here is what you want: Code: <?php |
Re: Help with PHP "If" statement needed Thanks much .... The php is coded so that it doesn't break my page any more, but the echo is not printing to the screen. Am I making a mistake trying to put php into that <<<EOF thingy? I've tested by doing an echo of a text string, and it shows properly. Maybe something with trying to include php and html code in a variable? |
| All times are GMT -6. The time now is 05:33 AM. |