RE: I need some help please...(or I kill the cat!)

From: Date: Tue, 05 Jun 2001 19:16:46 +0000
Subject: RE: I need some help please...(or I kill the cat!)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-866@lists.php.net to get a copy of this message
Hi, Alain Fontaine wrote:
The result might be : $result[0]["votes"] people voted for $result[0]["title"] -------- $result[1]["text"] : $result[1]["votes"] votes [...] $result[n]["text"] : $result[n]["votes"] votes this should work:
{section name=item loop=$result}
    {if %item.index% eq 0}
      {$result[item].votes} people voted for {$result[item].title}
    {else}
      {$result[item].text} : {$result[item].votes} votes
    {/if}
{/section} Mike PS: and keep your hands off that cat !!

« previous php.smarty.general (#866) next »