RE: [PHP-DB] Unusual Array Results
| From: | Wendell Frohwein | Date: | Wed, 06 Oct 2004 00:59:47 +0000 |
| Subject: | RE: [PHP-DB] Unusual Array Results | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36646@lists.php.net to get a copy of this message | ||
Yup that was it, can't believe these people sale this software like
that. I should ask them to donate some money to everyone that helped me
on this for debugging purposes.
-Wendell Frohwein
-----Original Message-----
From: Andrew Kreps [mailto:andrew.kreps@gmail.com]
Sent: Tuesday, October 05, 2004 5:49 PM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Unusual Array Results
On Tue, 5 Oct 2004 17:40:54 -0700, Wendell Frohwein
<wendell@3rdpixel.com> wrote:
> Here is that inradius function:
>
I think I see your problem. The counter isn't initialized. Try
sticking $i = 0 right here:
if($db->affected_rows()<>0) {
$i = 0;
while($db->next_record()) {
and see if that works. The variable $i appears to be undefined on the
first iteration of the while loop, which would explain why your first
array index is null. Give it a shot, and let me know how it goes.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php