w.
Just move that echo statement about your if statement (leave the
auto-increment where it is), and you should be fine.
--Todd
> -Original Message-
> From: Todd Kerpelman
> Sent: Monday, February 26, 2001 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Table loo
Johnson, Kirk [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 1:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Table looking odd as a result of while loop?
>
>
> Is it because 1 % 3 is 0 with a remainder of 2? Looks like
> the code is doing
> just what it
PROTECTED]
Subject: [PHP] Table looking odd as a result of while loop?
Hi all, This is probably something dumb I'm missing, but I am using the
following code:
echo "\n";
echo "\n";
$photocount = 0;
while($row = mysql_fetch_array($result)) {
$smallpic = $row['
Hi all, This is probably something dumb I'm missing, but I am using the
following code:
echo "\n";
echo "\n";
$photocount = 0;
while($row = mysql_fetch_array($result)) {
$smallpic = $row['smallpic'];
if (($photocount % 3) == 2) {
echo "\n\n";
}
echo "$smallpic\n";
$photocount++
4 matches
Mail list logo