Re: Undefined index ????

From: Date: Wed, 09 Jun 2004 22:14:57 +0000
Subject: Re: Undefined index ????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187992@lists.php.net to get a copy of this message
Michael Jonsson wrote:
Hi Why do I get an error if the $_SESSION['user_status'] is emty (it's not set to anything) ??? in my redhat 9 it did mork, but when I moved to Fedora Core 2 it's not working... ####Script###### session_start(); echo $_SESSION['user_status']; #####error###### Notice: Undefined index: user_status in /var/www/itmdata/include/include.php on line 13 Regards Micke
This is a notice. Try setting your error level to E_ALL & ~E_NOTICE or using isset() before you try to use the variable. -- paperCrane <Justin Patrin>

« previous php.general (#187992) next »