Re: Re: help w/ multidementional array in mysql

From: Date: Wed, 25 Feb 2004 23:25:02 +0000
Subject: Re: Re: help w/ multidementional array in mysql
Groups: php.db 
Request: Send a blank email to php-db+get-33131@lists.php.net to get a copy of this message
On Wed, 25 Feb 2004 14:56:53 -0400 Luis M Morales C <lmorales@venezuelasite.net> wrote: Thank you so much Justin and Luis. You guys are awesome. You both helped me tremendously! BTW, I figured out a way to make the tables show the $value results in alternating colors. I just use a bitwise AND to test if the $key is odd. If so make the cell blue! Heres: the code: <<< snip-snip >>> <?php foreach ($returned_rows as $key => $value) { if ($key & 1) { echo "<tr><td class='results_blue'> } else { echo "<tr><td class='result } } ?> -- Scott Phelps --- Linux: "$ su - root" --> Windows: (reboot)

« previous php.db (#33131) next »