Strange Parse Errors. Help needed.
| From: | Rodrigo Pinheiro | Date: | Thu, 03 Jan 2002 00:47:06 +0000 |
| Subject: | Strange Parse Errors. Help needed. | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2477@lists.php.net to get a copy of this message | ||
Hi there:
I'm trying to use the following code:
<select name="categoria">
<option>Seleccione a Categoria</option>
{section name=categorias loop=$id_categoria}
{if $id_categoria[categorias] eq $FORM_Categoria}
<option value="{$id_categoria[categorias]}"
selected>{$nome_categoria[categorias]}</option>
{else}
<option
value="{$id_categoria[categorias]}">{$nome_categoria[categorias]}</option>
{/if}
{/section}
</select>
It works fine in Windows 2000 (PHP 4.06)but when I use it in an Linux Server
(PHP 4.0.3pl1) I get a "Parse Error". I'm using Smarty's latest version
(1.5.2). Am I doing something wrong? Could somebody help me?
Thank you
Rodrigo