PHP within html

Hey guys,

I’m trying hard to figure out where the syntax error is in my code below but I just can’t figure out what’s wrong.

I’m trying to change this:

[php]$text = ps_product::image_tag($product[‘product_thumb_image’], $img_attributes, 0)."
".$VM_LANG->_(‘PHPSHOP_FLYPAGE_ENLARGE_IMAGE’);[/php]

into this:

[php]$text = “<img width=“350” height=“522” src=“components/com_virtuemart/shop_image/product/<?php echo $product_full_image ?>” />
”.$VM_LANG->_(‘PHPSHOP_FLYPAGE_ENLARGE_IMAGE’);[/php]

But this part: <?php echo $product_full_image ?> is WITHIN HTML and not reading as PHP

Any help would sure be appreciated!

Brenn

[php]
$text = “<img width=“350” height=“522” src=“components/com_virtuemart/shop_image/product/$product_full_image” />
”.$VM_LANG->_(‘PHPSHOP_FLYPAGE_ENLARGE_IMAGE’);
[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service