Re: undefined Constant

From: Date: Sun, 15 May 2005 20:10:11 +0000
Subject: Re: undefined Constant
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-39448@lists.php.net to get a copy of this message
bunmi.akinmboni@ayserve.net wrote:
Please can someone help me? I keep getting this messages below yet the memvars are well defined and loaded with values. What could be the cause? I will appreciate any help. Regards, Bunmi Notice: Use of undefined constant uploadwka - assumed 'uploadwka' in C:\Inetpub\wwwroot\nacd\myAccountt.php on line 151 uploadwka Notice: Use of undefined constant uploadwkb - assumed 'uploadwkb' in C:\Inetpub\wwwroot\nacd\myAccountt.php on line 152 uploadwkb Notice: Use of undefined constant uploadwkc - assumed 'uploadwkc' in C:\Inetpub\wwwroot\nacd\myAccountt.php on line 153 uploadwkc Notice: Use of undefined constant uploadwkd - assumed 'uploadwkd' in C:\Inetpub\wwwroot\nacd\myAccountt.php on line 154 uploadwkd -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
somewhere you are using uploadwka as an unquoted string. Probably when accessing an array; echo $aTest[uploadwka]; // String not oquoted, PHP assumes uploadwka is a constant. It's not, so it generates a warning and default to the value of 'uploadwka'; echo $aTest['uploadwka']; // Correct

« previous php.db (#39448) next »