Page 1 of 1

Image Size

Posted: Sun Apr 11, 2010 5:29 pm
by tito85
I need some help. I would like to add an image fixed size within this code, so when the image is displayed it will be displayed in the wanted size.

echo "<td align=\"center\"><img src=\"images/" . $recommendation['filename'] . "\"/><br /></td>";

Any help please?

Thanks :)

Re: Image Size

Posted: Sun Apr 11, 2010 10:35 pm
by solid
Sounds like you're over-complicating this :) Just do:

echo '<td align="center"><img src="images/' . $recommendation['filename'] . '" width="300" height="200" /></td>';

Re: Image Size

Posted: Mon Apr 12, 2010 8:57 am
by tito85
Thank you very much! It is working!!!