You are here: Re: PHP to echo a line in html source... « PHP Programming Language « IT news, forums, messages
Re: PHP to echo a line in html source...

Posted by Domestos on 08/24/05 00:05

> or using multiline strings (and double quotes):
>
> <?php
> echo "<table>
> <tr>
> <td> blah blah </td>
> </tr>
> </table>
> ";
> ?>

<snip>

That one thats worked for me is as follows... multiline string, with single
quotes. I needed to embed php variables into the string also... as
follows...
echo '<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="gfx/interface/win_'.$wincol.'_tl.gif" width="10" height="10"
border="0"></td>
<td><img src="gfx/interface/win_'.$wincol.'_t.gif" width="'.$winwid.'"
height="10" border="0"></td>
<td><img src="gfx/interface/win_'.$wincol.'_tr.gif" width="10" height="10"
border="0"></td>
</tr>
<tr>
<td><img src="gfx/interface/win_'.$wincol.'_l.gif" width="10"
height="'.$winhgt.'" border="0"></td>
<td width="'.$winwid.'" height="'.$winhgt.'" bgcolor="#393939">';

 

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

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