Re: mixing HTML and PHP code
| From: | Hrishi | Date: | Fri, 12 Jan 2001 17:00:48 +0000 |
| Subject: | Re: mixing HTML and PHP code | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34257@lists.php.net to get a copy of this message | ||
i used to think
<table bgcolor="#ffffff">
<tr>
<td bgcolor="#eeeeee" width="300">
Name :
<?php
$name = 'johnny';
printf("%s %s
%s","<b>","$name","</b>");?>
</td>
<td bgcolor="#eeeeee" width="300">
Title :
<?php
$title = 'smith';
printf("%s %s
%s","<b>","$title","</b>");?>
</td>
</tr>
</table>
or more like :
<table bgcolor="#ffffff">
<tr>
<td bgcolor="#eeeeee" width="300">
Name :
<b><?php
$name = 'johnny';
echo $name; ?></b>
</td>
<td bgcolor="#eeeeee" width="300">
Title :
<b><?php
$title = 'smith';
echo $title; ?></b>
</td>
</tr>
</table>
-------------------------------------------
Yeah, there are more important things in life than money, but they won't go
out with you if you don't have any.