Re: Only 4 of 5...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message ----- From: "Thorsten Suckow-Homberg" <ts@xxxxxxxxxxxxxx> To: "Gustav Wiberg" <gustav@xxxxxxxxxxxxxx>; "PHP General" <php-general@xxxxxxxxxxxxx>
Sent: Thursday, March 02, 2006 11:13 PM
Subject: Re:  Only 4 of 5...


Because of this:

$dbArray = mysql_fetch_array($querys);

This will fill $dbArray with the first row fetched from the table. 4 are left which you are calling in your loop at the end of your code example. What's your reason anyway to call mysql_fetch_array() here?
Delete this line and I'd bet you're getting your 5 results ;)

HTH

Thorsten

Aha, this seems reasonable! Thanx, this solved it!

/G

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux