Good day,

The error message refers to the "KundeRemark" in $val["KundeRemark"], not
"$KundeRemark" which you are trying to assign the result to.  The former is
(if it existed) an index, the latter is a variable.

Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948

-----Original Message-----
From: Kai Schaetzl [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 9:31 AM
Subject: Re: [PHP] what's "undefined index" ?

Your message of Mon, 25 Mar 2002 11:35:57 +1100:

> "undefined variable" is when you try to use a variable before you set it,
> $foobar
> "undefined index" is when you try to reference an array index before you
> it, eg $foobar[10]

Hi, thank you both for the explanation. It's clear why I get the
these variables *are* for various reasons undefined at the moment. However, 
there are NO arrays involved, f.i. "KundeRemark" is NOT an array it's a
string variable created by

$KundeRemark       = stripslashes($val["KundeRemark"]);

which is a field from a SQL result which currently doesn't exist because I 
changed the connection to a different db where this field is named 
differently. So, it's undefined, fine. But why is it called "undefined
where it should be "undefined variable" ?

> Warning: Undefined index: KundeRemark in
> C:\Server\www\conadmin\admin-beta\lib\ on line
> 138



Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services:
IE-Center: &

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to