Hi ProjectFear
Thanks for your reply.
I know my codes are rubbish, i am but a novice and i do try.
Here is the re-written code based on what you said. it works for lower case as you said it would. i am having a read on those suggestions you made and will see if i can work it out, if not i will ask here again.
The extension comes from a folder of images.
So i guess the script will have to read the file first to determine what case the extension is, correct?
I thought the formatting was correct for displaying an image? if i move the php tag and such, it breaks
The whole code is inbetween the img tags
<img src=../images/mbr_images/<?php echo H($mbr->getBarcodeNmbr());
$lower = ".jpg";
$upper = ".JPG";
if ($lower = $lower) {
echo $lower;
} else {
echo $upper;
}
?> height=150 width=100 border=1px </img>
Thanks
peter