Smarty 1.4.0b2 - upgrade with some nested loop problems
| From: | marc konopka | Date: | Wed, 02 May 2001 17:24:30 +0000 |
| Subject: | Smarty 1.4.0b2 - upgrade with some nested loop problems | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-667@lists.php.net to get a copy of this message | ||
Hi,
Need some help
I've just try an upgrade from the 1.3 to the 1.4.0b2
Now i've got error messages with my nested loop.
Below, the code working in 1.3
Here's my template code :
{section name=loop loop=$moins}
{$loop/moins.texte}<br>
{/section}
My php code
unset($result);
$query = "select * from ev_moins where ev_moi_pay_id = '$pay_id'";
$myres = mysql_query($query);
$i = 0;
while ($myrow = mysql_fetch_array($myres))
{
$result[$i]["texte"] = " -
".utf8_decode($myrow["ev_moi_texte"]);
$i++;
}
mysql_free_result($myres);
$smarty->assign("moins", $result);
Bye,
----- Original Message -----
From: "Monte Ohrt" <monte@ispi.net>
To: <smarty@lists.ispi.net>
Sent: Wednesday, May 02, 2001 6:02 PM
Subject: [smarty] Smarty 1.4.0b2 available
> Fixed a couple of things, check the changelog.
>
> http://www.phpinsider.com/php/code/Smarty/beta/Smarty-1.4.0b2/
>
> ---
> You are currently subscribed to smarty as: konopka@echo.fr
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/