PHP Code:
echo "<a class=\"cloud-zoom\" id=\"zoom1\" href=\"$display_lgimage1\" rel=\"adjustX: 10, adjustY:-4\">$display_smimage1</a>";
Try that if it was working before you added the php in.
or even
PHP Code:
?>
<a class="cloud-zoom" id="zoom1" href="<?php echo $display_lgimage1; ?>" rel="adjustX: 10, adjustY:-4"><?php echo $display_smimage1 ?></a>
<?php
//if more php below
This assumes your js works perfect and your $display_smimage1 contains the full image tag (<img src="path_to_image" anything else needed />.
Bookmarks