Re: Printing selective elements of an array
| From: | Andrei Zmievski | Date: | Tue, 22 Jan 2002 14:28:47 +0000 |
| Subject: | Re: Printing selective elements of an array | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2560@lists.php.net to get a copy of this message | ||
On Mon, 21 Jan 2002, Neil Galvin wrote:
> My non-working smarty code is:
>
> {section name=list loop=$search_artist}
>
> {if $search_artist[list].artist_name == $search_artist[list-1].artist_name}
> {*
> I have tried using index & index_prev to no avail.
> I have also tried creating an array and offseting it by one to use instead
> of [list]
How did you try to use index_prev?
-Andrei
"Claiming Java is easier than C++ is like
saying that K2 is shorter than Everest."
-- Larry O'Brien (editor, Software Development)