RE: [PHP] while loop and modulus?

2001-02-27 Thread DanO
by default, HTML browsers, according to spec, will handle the rendering of any and all empty cells at the end of a row. even netscape ;) so, this is technically not a bug. my question is how it works when you have 7 photos in a row, or 4? DanO -Original Message- From: James, Yz [m

Re: [PHP] while loop and modulus?

2001-02-27 Thread Ron Wills
"James, Yz" wrote: OK, using this code: echo "\n"; echo "\n"; $photocount = 0; while($row = mysql_fetch_array($result)) { $smallpic = $row['smallpic'];  echo "$smallpic\n";  if (($photocount % 3) == 2) { echo "\n\n";  }  $photocount++; }   This should fill in the remaining cells yo