You are here: Re: Cannot get this one correct and working, though simple! « PHP Programming Language « IT news, forums, messages
Re: Cannot get this one correct and working, though simple!

Posted by Geoff Berrow on 12/30/05 18:43

Message-ID: <E_adnTHBbOGRzyjeRVn-uA@comcast.com> from Jerry Stuckle
contained the following:

>>>Single quotes! Try Double.
>>
>>
>> Single quotes are fine as is the code AFAICT.
>>
>
>No, with single quotes $i is not expanded. It would be with double quotes.

Looking at the code again he has

echo "<a href='$i.jpg' target='main'><img src='thumb$i.jpg'></a>

Now that can't be right or he's have a parse error, so I assumed he had

echo "<a href='$i.jpg' target='main'><img src='thumb$i.jpg'></a>";

which, for $i =1 gives:-
<a href='1.jpg' target='main'><img src='thumb1.jpg'></a>

In which case it would be in double quotes and would be expanded. In
fact the OP had already said it was expanded.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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