Hello all,
For my website I have the following code:
Now I have the following problem (ok, actually a challenge). The code above is for the "category" civil. For the military category I would like to have an other code.
As you can see, in the code above the name of the image is made out of two pieces: owner2 and owner. For the military images I only want to use the owner.
I hope someone can help me with this.
Regards,
Ruud
For my website I have the following code:
<?php
$icon = '';
if ( $MyRow->owner2 ) {
echo "<a href='#' >
<img src='../images/logo/{owner2}_{owner}.png' title='{owner2}' /></a>";
}
?>
With this code I am able to show an image if that cell is not empty. If the cell in my database is empty, no image will be shown. Now I have the following problem (ok, actually a challenge). The code above is for the "category" civil. For the military category I would like to have an other code.
As you can see, in the code above the name of the image is made out of two pieces: owner2 and owner. For the military images I only want to use the owner.
I hope someone can help me with this.
Regards,
Ruud