Re: alternating background colors

From: Date: Wed, 14 Aug 2002 20:32:22 +0000
Subject: Re: alternating background colors
References: 1 2 3 4 5 6  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5715@lists.php.net to get a copy of this message
Blue Presley schrieb in php.smarty.general: > I'm using <section></section> to repeat a list of rows from a mysql > query. it would be great it there were a parameter to provide 2 colors > to alternate in the background cell results. > > having said that, is anyone out there doing that and if so how are they > transferring the color from the php script to the smarty template? Have you try {cycle}? http://smarty.php.net/manual/en/language.function.cycle.html -- Dipl. Ing. Thomas Schulz - http://4bconsult.de

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