Re: Re: help w/ multidementional array in mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 25 Feb 2004 14:56:53 -0400
Luis M Morales C <lmorales@xxxxxxxxxxxxxxxxx> 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)

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux