Search found 4 matches
- Fri Dec 24, 2004 10:29 am
- Forum: PHP - Code
- Topic: conditional statement split between includes?
- Replies: 7
- Views: 932
- Fri Dec 24, 2004 1:53 am
- Forum: PHP - Code
- Topic: conditional statement split between includes?
- Replies: 7
- Views: 932
- Thu Dec 23, 2004 7:20 pm
- Forum: PHP - Code
- Topic: conditional statement split between includes?
- Replies: 7
- Views: 932
Now try putting that if statement in one include and the else in another.rehfeld wrote:Code: Select all
if (logged in) { // show logged in stuff // include() something if you want } else { // dont // include() something else f you want }
- Thu Dec 23, 2004 7:03 pm
- Forum: PHP - Code
- Topic: conditional statement split between includes?
- Replies: 7
- Views: 932
conditional statement split between includes?
Stupid question... I am taking a currently entirely public site and making some of its content 'private' so that only logged in members can see content. Currently the bulk of code and html is in a header include and a footer include. I'd like to avoid making any changes to the individual pages (the ...