Re: putting variables in a variable
| From: | Mark Kelly | Date: | Tue, 21 Jul 2009 16:12:46 +0000 |
| Subject: | Re: putting variables in a variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295623@lists.php.net to get a copy of this message | ||
Ross,
If I understand correctly what you want to do, you're almost there...
You need:
$myimage1 = "image1.jpg";
$myimage2 = "image2.jpg";
$myimage3 = "image3.jpg";
$body .="
<table>
<tr>
<td><img src=\"$myimage1\"></td>
</tr>
<tr>
<td><img src=\"$myimage2\"></td>
</tr>
<tr>
<td><img src=\"$myimage3\"></td>
</tr>
</table>
";
Cheers,
Mark