You are here: Re: Append file ext to returned query « PHP Programming Language « IT news, forums, messages
Re: Append file ext to returned query

Posted by Mikii on 10/09/02 12:00

"rf" <rf@invalid.com> wrote in message
news:G0Ijj.4481$421.3063@news-server.bigpond.net.au...
>
> "Mikii" <notspam@nomailhere.com> wrote in message
> news:lTHjj.82140$wD5.40455@newsfe3-gui.ntli.net...
>> Hi - I have this working
>>
>> while($row=mysql_fetch_array($result))
>> {
>> $filename=$row['cat_title'];
>> echo "<li><a href=\"". $filename. "\">". $filename."</a></li>\n";
>> }
>>
>>
>> I need to append ".html" (the extension) onto $filename so it returns
>>
>> pagename.html
>
> $filename . ".html" ?
>
> --
> Richard.


Thanks Richard for reading:
echo "<li><a href=\"". $filename . ". html" "\">". $filename."</a></li>\n"

gives parse error unexpected T_CONSTANT_ENCAPSED. Is this an escaping issue?

 

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

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