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:[EMAIL PROTECTED] 
Sent: Tuesday, October 05, 2004 5:49 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Unusual Array Results

On Tue, 5 Oct 2004 17:40:54 -0700, Wendell Frohwein
<[EMAIL PROTECTED]> 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

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

Reply via email to