The only code I have in my script to display the image is:
<tr>
<td align="center" valign="center" width="100%">
<p>[pic2]</p>
</td>
</tr>
Based on the record I am on, the image for this [pic2] is displayed correctly. If I go to another record or product, the [pic2] image related to that product is displayed. This all works great with the above code.
All I want to do is click on the image and show a larger one which means I have to wrap code around <p>[pic2]</p>
I just don't know how to layout the entire syntax with my image only being referred to as [pic2] in brackets as apposed to something like:
<a href="pic1.jpg"><img src="thpic1.jpg" width=xxx height=xxx
border=0 alt="larger view of product"></a>
Where you are actually referencing a unique jpg.
It is finding the path though as when I mouse over my image it shows:
http://website.com/product_images/rarerug.jpg"border="0">
I just have something screwed up in my syntax as it looks like it is taking the border as part of the path or something.
Hard to explain!