RE: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Clarkson, Nick
#x27;'; print "TEST" ; print " "; } print ""; ?> -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] Sent: 17 January 2003 12:12 To: PHP general list Subject: [PHP] Alternate row colours - what is wrong with this code? Hello Guys, I

Re: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Chris Hayes
At 13:11 17-1-2003, you wrote: > I want alternating colours in the output table. Can someone tell me what is wrong with this code? I get the data but no alternating colours. It has to do with the $cols[$i++%2] part. When I try to print $i++%2 the outcome varies between 1 and none. Somehow the

Re: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Jason Wong
On Friday 17 January 2003 20:11, Denis L. Menezes wrote: > Hello Guys, > > I want alternating colours in the output table. Can someone tell me what is > wrong with this code? I get the data but no alternating colours. > > Quote : > >$cols = array('#ff','#00ff00'); > $i = 0; > while($r

RE: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Clarkson, Nick
[mailto:[EMAIL PROTECTED]] Sent: 17 January 2003 12:12 To: PHP general list Subject: [PHP] Alternate row colours - what is wrong with this code? Hello Guys, I want alternating colours in the output table. Can someone tell me what is wrong with this code? I get the data but no alternating colours

[PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Denis L. Menezes
Hello Guys, I want alternating colours in the output table. Can someone tell me what is wrong with this code? I get the data but no alternating colours. Quote : '; Print "" ; Print " $row[OrgName] "; print "  "; Print "" ; Print $row[Country]; print "  "; Print "" ; Print $r