[PHP] Re: putting variables in a variable
- From: tedd.sperling@xxxxxxxxx (tedd)
- Date: Fri, 28 Mar 2008 11:53:31 -0400
At 4:47 PM +0100 3/28/08, M. Sokolewicz wrote:
Hulf wrote:Hi,My first idea is to ask you what you WANT exactly and what's wrong with what you have. Currently you're showing 1 string, and 3 variables. Nothing else... what do you expect to happen that is not hapenning? Or what do you expect not to happen that IS hapenning ?
I am making and HTML email. I have 3 images to put in. Currently I have
$body .="
<table>
<tr>
<td><img src=\"image1.jpg\"></td>
</tr>
<tr>
<td></td>
</tr>
</table>
";
ideally I would like to have
$myimage1 = "image1.jpg";
$myimage2 = "image2.jpg";
$myimage3 = "image3.jpg";
and put them into the HTML body variable. I have tried escaping them in every way i can think of, dots and slashes and the rest. Any ideas?
Ross
I think it's fuzzy thinking.
He probably wants:
$body .="
<table>
<tr>
<td><img src=\"$image.jpg\"></td>
</tr>
<tr>
<td></td>
</tr>
</table>
";
Where $image.jpg is "image1.jpg" or "image2.jpg" or "image3.jpg"
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
.
- References:
- Re: putting variables in a variable
- From: "M. Sokolewicz"
- Re: putting variables in a variable
- Prev by Date: Re: [PHP] Deleting file in /tmp directory
- Next by Date: RE: [PHP] array_filter function
- Previous by thread: Re: putting variables in a variable
- Next by thread: [PHP] Use of callback on a stream
- Index(es):
Relevant Pages
|