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... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php