DaveC426913
Programmer
I want to ensure that, when I first come into the script I know or set the value of variable 'debug'. I first need to know if it's set.
if (isset($_SESSION['debug'])){
$debug=$_SESSION['debug'];
}
else{
$debug=0;
}
This gives me a warning on the first line:
Notice: Undefined index: debug
if (isset($_SESSION['debug'])){
$debug=$_SESSION['debug'];
}
else{
$debug=0;
}
This gives me a warning on the first line:
Notice: Undefined index: debug