PDA

View Full Version : PHP Question adding a image before category name


jonascw
09-06-2005, 10:02 PM
Hi! my name is Jonas and I'm new here in this forum and I hope I'm not making a foul of my self.

Im making a small directory width pages from Norway and Sweden and I want to add a flag (image)before the catagory name. I added a column to the PLD_CATEGORY called SORT, and in index.php i added:
Content visible to registered users only.

I'm new to PHP and need a jump start. What i would like is something like:

if SORT = 1 print image_1.png TITLE
elseif SORT = 2 print image_2.png TITLE
else print TITLE

I think it's in main.tpl somewhere in:
Content visible to registered users only.

I hope you understand what I mean. Thanks in advance to all of you.

Jonas