RE: [PHP] notice:use of undefined constant: add-assumed 'add' in..........
| From: | Jay Blanchard | Date: | Tue, 06 Apr 2004 20:40:21 +0000 |
| Subject: | RE: [PHP] notice:use of undefined constant: add-assumed 'add' in.......... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182545@lists.php.net to get a copy of this message | ||
[snip]
i have something like this:
if(!empty($_SESSION['add']['start_date']) &&
!empty($_SESSION['add']['end_date'])..........)){
and i get the unexpected error:
notice:use of undefined constant: add-assumed 'add' in (filename).....
dont quite understand why that is since i used other code that i have
that works just like that (just different var names) and since that
works i thought it would work for this one too??? but it doesnt?? im
really lost now since i defined what $_SESSION['add']['...'] was already
in the file before it...just like the rest of the stuff.....
any ideas whats wrong??
[/snip]
A. add is a keyword
2. you have an undefined constant named add