[rather OT] Re: alternating bgcolor in rows

2006-02-25 Thread Hans Meier (John Doe)
henry chen am Samstag, 25. Februar 2006 07.07: > I can't seem to figure out how to alternate the bgcolor for each row that > i'm printing from arrayref. Is there a 'foreveryother' function that would > allow me to put two lines in the loop? Or is there someway I can put two > rows of information

Re: alternating bgcolor in rows

2006-02-25 Thread Hans Meier (John Doe)
Bob Showalter am Samstag, 25. Februar 2006 15.03: > henry chen wrote: > > I can't seem to figure out how to alternate the bgcolor for each row > > that i'm printing from arrayref. Is there a 'foreveryother' function > > that would allow me to put two lines in the loop? Or is there someway I > > c

Re: alternating bgcolor in rows

2006-02-25 Thread Bob Showalter
henry chen wrote: I can't seem to figure out how to alternate the bgcolor for each row that i'm printing from arrayref. Is there a 'foreveryother' function that would allow me to put two lines in the loop? Or is there someway I can put two rows of information and loop that? Here's what I hav

Re: alternating bgcolor in rows

2006-02-25 Thread John W. Krahn
Chas Owens wrote: > On 2/25/06, henry chen <[EMAIL PROTECTED]> wrote: >>I can't seem to figure out how to alternate the bgcolor for each row that >>i'm printing from arrayref. Is there a 'foreveryother' function that would >>allow me to put two lines in the loop? Or is there someway I can put two

Re: alternating bgcolor in rows

2006-02-25 Thread henry chen
Thank you for all the help guys! It works beautifully! _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- To unsubscribe, e-mail: [EMAI

Re: alternating bgcolor in rows

2006-02-24 Thread Chas Owens
On 2/25/06, Hans Meier (John Doe) <[EMAIL PROTECTED]> wrote: > Chas Owens am Samstag, 25. Februar 2006 08.18: > [...] > > Aye, I am an idiot. > > No, your help on this list is very valuable, and, imho, typos are not proof > for idiocy... > > Hans No, but typing when one should be sleeping is. --

Re: alternating bgcolor in rows

2006-02-24 Thread Hans Meier (John Doe)
Chas Owens am Samstag, 25. Februar 2006 08.18: [...] > Aye, I am an idiot. No, your help on this list is very valuable, and, imho, typos are not proof for idiocy... Hans -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: alternating bgcolor in rows

2006-02-24 Thread Chas Owens
On 2/25/06, Hans Meier (John Doe) <[EMAIL PROTECTED]> wrote: snip > if (++$i % 2) { # odd rows > > otherwise you'll get only odd rows :-) snip Aye, I am an idiot. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: alternating bgcolor in rows

2006-02-24 Thread Hans Meier (John Doe)
Chas Owens am Samstag, 25. Februar 2006 07.17: [...] > Use the module operator (%) with an if statement to do different > things in a loop: > > my $rows = $dbhandle->selectall_arrayref($sql) || die $dbhandle->errstr; > if (@$rows) { > print " width='70%'>" . > > "TitleDescriptionPriceEm

Re: alternating bgcolor in rows

2006-02-24 Thread Chas Owens
On 2/25/06, henry chen <[EMAIL PROTECTED]> wrote: > I can't seem to figure out how to alternate the bgcolor for each row that > i'm printing from arrayref. Is there a 'foreveryother' function that would > allow me to put two lines in the loop? Or is there someway I can put two > rows of informati