Re: displaying result across 3 cells - where did I go wrong?

From: Date: Tue, 05 Aug 2003 13:30:22 +0000
Subject: Re: displaying result across 3 cells - where did I go wrong?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-29676@lists.php.net to get a copy of this message
From: "Aaron Wolski" <aaronjw@martekbiz.com> > So.. do I need to use 2 different incrementors? $z and say $x for each > part? > > I basically pieced this code together from several examples I found so > forgive forgive the fact I don't know a whole lot about the code even > though I've tried to understand it as much as possible *shrugs* You could try something like this: while($z % 3 !== 0) { $z++; ... } That way $z is only incremented when there are left over cells to be filled. You may have to play around with it for a bit. ---John Holmes...

« previous php.db (#29676) next »