Re: [PHP4BETA] A (Hopefully) simple question *gulp*

From: Date: Fri, 28 Apr 2000 02:26:10 +0000
Subject: Re: [PHP4BETA] A (Hopefully) simple question *gulp*
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14125@lists.php.net to get a copy of this message
On 28 Apr, Bradley wrote: > David! I might have known I could count on you for a prompt reply. And a > repeated request to fix my mailer. =) > > Is it fixed now?? I tried..Anyhow! Looks good from here :-) even if it is THAT software. > > Can I use the counter I've already put in with the changes you've made? > >> > for ($p = 0;$p < count($row);$p++) { > > Thanks heaps! No - that counter seems to be reset for each row - you'd need to put it about here: $rowcounter = 0; $bgcol1 = 'blue'; $bgcol2 = 'red'; while ($row = mysql_fetch_row($result)){ // test rowcounter mod 2 and echo correct <TR> string echo "<tr bgcolor=\"#00AAAA\">"; $rowcounter++; Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.version4 (#14125) next »