$KundeRemark = stripslashes($val["KundeRemark"]);
^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
\---- This is fine, you're assigning TO this \---- It's this bit
that's undefined
as you said:
> which is a field from a SQL result which currently doesn't exist...
so, in a way, you answered your own question.
HTH
Martin
-----Original Message-----
From: Kai Schaetzl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 3:31 AM
To: [EMAIL PROTECTED]
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,
eg
> $foobar
> "undefined index" is when you try to reference an array index before you
set
> it, eg $foobar[10]
>
Hi, thank you both for the explanation. It's clear why I get the
"undefined",
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
simple
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
index"
where it should be "undefined variable" ?
> Warning: Undefined index: KundeRemark in
>
> C:\Server\www\conadmin\admin-beta\lib\kunden_functions.inc on line
>
> 138
>
Kai
--
Kai Sch�tzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php