004 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 =
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 wo
hat gets the zips out of my main code and put it in a
file by itself to see how it reacts, same thing, you can see it here:
http://www.pdqval.com/admin/test.php
and the source here
http://www.pdqval.com/admin/test.sphp
Thanks again
-Wendell
-----Original Message-
From: Andrew Kreps [ma
On Tue, 5 Oct 2004 16:50:04 -0700, Wendell Frohwein
<[EMAIL PROTECTED]> wrote:
> Hi Andrew. I'm using a class that was designed to search zip code
> radius's. Here is the piece that gets them.
>
> 2 Mile Radius Search From 90606
> $radius="2";
>
> $zipArray1 = $zipLoc->inradius("90606",$radius1);
bought the zip code software from
http://www.newdataweb.com/software/zipcode/index.php
So, maybe it's something with there software that creates the array,
Sorry if I wasted anyone's time -=/
-Wendell Frohwein
-Original Message-
From: Andrew Kreps [mailto:[EMAIL PROTECTED]
Sen
On Tue, 5 Oct 2004 13:49:11 -0700, Wendell Frohwein
<[EMAIL PROTECTED]> wrote:
> Hello all again, I am using php 5.0.1 with mysql 4.1.4a-gamma. After I
> did this upgrade, I noticed pieced of my code were failing. Took me a
> while to figure it out. When I would be working with arrays, sometimes I