Page 1 of 1

what am i doing wrong in the img src?

Posted: Tue Mar 30, 2010 7:37 am
by barrowvian
I am wanting to dynamically display an image. So far I have got;

Code: Select all

<img style="border: 1px black solid" alt="Photo gallery" src="<?php $image_path . "profile.jpg"; ?>" id="tempGallery" width="160" height="160">
with $image_path being the directory which is called from a cookie. I could not include profile.jpg within the cookie as I use that for other parts of the site. All Im wanting to do is display the profile image, but I do need the $image_path in there also. Thanks

Re: what am i doing wrong in the img src?

Posted: Tue Mar 30, 2010 8:24 am
by mikosiko

Code: Select all

<?php $image_path . "profile.jpg"; ?>
maybe you need just and echo? like

Code: Select all

<?php echo $image_path . "profile.jpg"; ?>
Miko