try this.
<img src='<?php echo $targetpath;?>'>
If this code don't work, maybe you can post your viewproducts script here.
lyrico
Junior Poster in Training
94 posts since Dec 2010
Reputation Points: 33
Solved Threads: 15
How does the resulting HTML source code look?
Did you really use $targetpath as variable name, or shouldn't ir read $target_path ?
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254