Posted by Kim Andrι Akerψ on 10/11/17 12:00
Mikii wrote:
> 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
>
>
> How to append this in PHP please?, and thanks for your time.
Just add it to the text string (inside the unescaped "'s):
echo "<li><a href=\"". $filename. ".html\">". $filename."</a></li>\n";
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|