|
Posted by NC on 11/06/07 04:13
On Nov 5, 1:18 pm, SM <servandomont...@gmail.com> wrote:
>
> i have a constant define like this
> define('PHOTOGRAPHY', 'images/photography/');
>
> The outpout (html) should look like this:
> <img src"images/photography/123.jpg">
You mean, <img src="images/photography/123.jpg">?
> How do i insert a constant in an HTML <img> tag.
<div id="main_image">
<img src="<?php echo PHOTOGRAPHY, $photo_filename; ?>" />
</div>
Cheers,
NC
[Back to original message]
|