|
Posted by Good Man on 11/05/07 21:31
SM <servandomontero@gmail.com> wrote in news:1194297487.340586.115990
@v23g2000prn.googlegroups.com:
> Hello
> i have a constant define like this
> define('PHOTOGRAPHY', 'images/photography/');
>
> The outpout (html) should look like this:
> <img src"images/photography/123.jpg">
>
> How do i insert a constant in an HTML <img> tag. I've try dozens of
> combinations with no results.
> Here' part of the code
> ...
> <div id="main_image">
> <img src="<?php echo $photo_filename; ?>" />
> </div>
If you define a constant, you'll certainly need to use it later on, it will
not magically appear.
<img src="<?php echo PHOTOGRAPHY.$photofilename; ?>" />
Navigation:
[Reply to this message]
|