From: "Andy B" <[EMAIL PROTECTED]> > 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).....
Double check your code. In order to get that Notice, you'd have to have $_SESSION[add], somewhere. Notice the missing quotes. In that case, "add" is interpreted as a constant, but since no such constant exists, PHP assumes you meant a string and uses that. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php