Re: Only 4 of 5...

From: Date: Thu, 02 Mar 2006 22:10:40 +0000
Subject: Re: Only 4 of 5...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231378@lists.php.net to get a copy of this message
----- Original Message ----- From: <jblanchard@pocket.com> To: <gustav@varupiraten.se>; <php-general@lists.php.net> Sent: Thursday, March 02, 2006 11:05 PM Subject: RE: [PHP] Only 4 of 5... [snip] I have 5 posts in the table, but the images shown are only four! Why? [/snip] Are you counting starting with 1 or 0? Don't understand your question... I have 5 posts in the table, but I'll only retrieve 4 posts when going through the array... like this... while ($dbArray = mysql_fetch_array($querys)) {
     $dbIDPic = $dbArray["IDPic"];
     $dbPicNameSmall = $dbArray["picNameSmall"];
     ?>
     <img src="phonepics/<?php echo $idModel;?>_<?php echo
$dbPicNameSmall;?>" alt="testbild från mobil" border="1" width="120" height="130">
     <?php
} /G .

« previous php.general (#231378) next »