Hello,
I'm kind of new to PHP and I was wondering if anyone would know how to display a particular image depending on what section of the website you are in.

example:

(something.com/the-band) the photo would be "the-band.jpg" but if you were in
(something.com/music) the photo would be "music.jpg"

If anyone could shed some light, that would much appreciated.

Cheers,
Ross

Comments

rosshj’s picture

(something.com/the-band) or (something.com/the-band/something) the photo would be "the-band.jpg" but if you were in (something.com/music) or (something.com/music/something) the photo would be "music.jpg"