I'm trying to display an image from a phtml file. The following doesn't work.

<?php <img src="<?php echo $adress ;?>" /> ?>

Could you help me ?


Loose the php tags around the img tag.

Use simply this:

<img src="<?php echo $adress ;?>" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.