PHP "If" help (2 posts)

  1. Anonymous
    Posted 10 years ago #

    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
    else pic2.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.

  2. ryoken
    Posted 10 years ago #

    I don't have the file handy now so i can't copy and paste, but look into the conditional lines in the index of the latest kubrick release. you'll find what you're looking for (i think).

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.