PHP “If” help
I would like to specify a graphic that will appear in my sidebar based on which php file is calling it. Problem is, I’m not a coder. I want something essentially like this:
if thisfile == index.php then pic1.jpg
thisfile would need to represent the name of the current php file that contains this code. And, of course, the rest of the syntax would need to be written correctly.
Thanks in advance to any coders who can help.
- The topic ‘PHP “If” help’ is closed to new replies.