Gurzi
Power Member
Boas pessoal..
Quando voces misturam php + html surge-me uma duvida.
if ($categories_description != '') {
?>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><?php echo tep_draw_separator(); ?></td>
</tr>
<tr class="CategoriesDescriptionTop">
<td class="CategoriesDescriptionTop"><?php echo $categories_description; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator(); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
</table></td>
</tr>
<?php
}
Por exemplo, neste caso..
O HTML esta fora do php, ou seja, o browser devera ler em qualquer dos casos nao ??
Imaginem que o if retorna false, mas o php acaba e o browser le o html nao??
Quando voces misturam php + html surge-me uma duvida.
if ($categories_description != '') {
?>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><?php echo tep_draw_separator(); ?></td>
</tr>
<tr class="CategoriesDescriptionTop">
<td class="CategoriesDescriptionTop"><?php echo $categories_description; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator(); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
</table></td>
</tr>
<?php
}
Por exemplo, neste caso..
O HTML esta fora do php, ou seja, o browser devera ler em qualquer dos casos nao ??
Imaginem que o if retorna false, mas o php acaba e o browser le o html nao??