Re: Only 4 of 5...

From: Date: Thu, 02 Mar 2006 22:28:02 +0000
Subject: Re: Only 4 of 5...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231382@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:15 PM Subject: RE: [PHP] Only 4 of 5... [snip] 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
[/snip] Is $dbIDPic an integer? Does it start with 0 or 1? Try $dbArray = mysql_fetch_array($querys); For($i = 0, $i < count($dbArray), $i++){ echo $dbArray[0] . "\t" . $dbArray[1] . "\n"; } It gives exactly the same resultset... and it should do right? but as I understand it For-each is faster? /G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#231382) next »