Forums

PHP

This topic is locked

Displaying $imgdir problem (php + css)

Posted 24 Apr 2007 07:34:10
1
has voted
24 Apr 2007 07:34:10 mark Augias posted:
Hey everyone...

Here's one for you... i've got an image display script working (it displays whatever images are in the directory selected from the drop down menu).

Each directory has it's individual name... that name is then printed as a h2 header for the page displaying the images (from the selected directory)... I want to replace this header with an image using css but am not sure how to go about it as the statement i've used:

print <h2><span>$imgdir</span></h2>

is pulling the title dynamicly so i'm unable to target it with css, right?

Is there an if statement i can use that'll define each specific directory name with an id so i can then replace it with an image specific to the chosen directory???

If anyone can help i'd really appreciate it...

thanks!!!


Replies

Replied 24 Apr 2007 12:33:18
24 Apr 2007 12:33:18 mark Augias replied:
er, if that doesn't make much sense let me know and i'll try again!

Reply to this topic