You are here: Re: Define, constant, quote, double quotes....driving me crazy! Help! « PHP Programming Language « IT news, forums, messages
Re: Define, constant, quote, double quotes....driving me crazy! Help!

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация