Wow, I didn't know Angles could sing...:-) Sorry, bad attempt at humor.
-Original Message-
From: John S. Huggins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:53 AM
To: Miguel Cruz
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] List, Key, Value oh my.
The Earth shook, A
The Earth shook, Angles sang, there was much rejoicing.
Behold Miguel is correct. === did the trick.
It sure is nice to know I am not going nuts.
Much thanks.
John
On Tue, 23 Apr 2002, Miguel Cruz wrote:
>-Amazing things happen when you compare values of different types. The
>-numerical v
Amazing things happen when you compare values of different types. The
numerical value of "Name" is zero. Try using === to compare type as well
as value.
miguel
On Tue, 23 Apr 2002, John S. Huggins wrote:
> I forgot to show you some output from this thing...
>
> ---{0,BLOW, JOE}---Name is BLOW
I forgot to show you some output from this thing...
---{0,BLOW, JOE}---Name is BLOW, JOE, Key = 0 |
---{Name,BLOW, JOE}---Name is BLOW, JOE, Key = Name |
---{1,YES}---1 |
---{2,}---
---{3,YES}---3 |
The way I see it, that first line should have not printed because $key is
equal to 0 not "Na
I have a problem.
I am fetching rows from a MySQL table called "temp." Each row has four
fields: "Name", "1", "2" and "3"
Then I do this function which will eventually generate records for a
lookup table for any skills in the 1, 2 or 3 fields that equal the string
"YES" associated with the Nam
5 matches
Mail list logo