Re: HTML and PHP
| From: | Esteban Fernandez | Date: | Wed, 04 Jun 2003 19:58:27 +0000 |
| Subject: | Re: HTML and PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150249@lists.php.net to get a copy of this message | ||
If you want separate the code for the design, maybe u want use Smarty. The
other is put all in just on <?php ?>, and use the echo or printf sentences.
EF.
"Christian Ista" <mailing-list@istasofts.com> escribió en el mensaje
news:20030604194744.61279.qmail@pb1.pair.com...
> Hello,
>
> Look the code below. Is it an obligation to multiply the number of <?php
?>.
> There is no other way ? not possible to use only an open php tag (<?php)
and
> a clode php tag (?>) ?
>
> Christian,
>
>
> <?php
> switch($constant_lastupdate[$i][3]){
> case '1' :?>
> <img src="design/logo_windows.gif" alt="" width="12"
> height="10"
> border="0">
> <?php
> break;
> case '2' :?>
> <img src="design/logo_mac.gif" alt="" width="10"
> height="10"
border="0">
> <?php
> break;
> case '3' :?>
> <img src="design/logo_linux.gif" alt="" width="9"
> height="11"
> border="0">
> <?php
> break;
> }
> ?>
>
>