Re: Printing selective elements of an array

From: Date: Tue, 22 Jan 2002 15:16:24 +0000
Subject: Re: Printing selective elements of an array
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2564@lists.php.net to get a copy of this message
On Tue, 22 Jan 2002, Neil Galvin wrote: > Hi Andrei. > > I have tried comparing index to index_prev > > {section name=list loop=$search_artist} > > {if $search_artist[index].artist_name == > $search_artist[index_prev].artist_name} You are not indexing the variables correctly. {if $search_artist[list].artist_name == $search_artist[list.index_prev].artist_name} is the right way. -Andrei "Computers are useless. They can only give you answers." --Pablo Picasso

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