RE: Unusual Array Results

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

 



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@xxxxxxxxx] 
Sent: Tuesday, October 05, 2004 5:49 PM
To: php-db@xxxxxxxxxxxxx
Subject: Re:  Unusual Array Results

On Tue, 5 Oct 2004 17:40:54 -0700, Wendell Frohwein
<wendell@xxxxxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux