Re: Two color rows in table inside while iteration

From: Date: Thu, 29 Apr 2010 22:27:52 +0000
Subject: Re: Two color rows in table inside while iteration
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-304763@lists.php.net to get a copy of this message
$a=0; while (++$a, $row=mysql_fetch_...){ echo "<tr class=‌‌‌‌‌‌\"alternate-row-".($a%2)."\"><..." } Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

« previous php.general (#304763) next »