Re: (Drupal function) getting error : "notice : Undefined index ?"
| From: | Curt Zirzow | Date: | Mon, 25 Aug 2003 06:04:39 +0000 |
| Subject: | Re: (Drupal function) getting error : "notice : Undefined index ?" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160641@lists.php.net to get a copy of this message | ||
* Thus wrote fatih olcer (fatiholcer@ttnet.net.tr):
> hi,
>
>
> i think i have a configuration problem. but i couldn't find any
> solution. i can run the same code without any problems on win98 (phpdev5
> installed)
> i have changed some php.ini settings like display_errors = off ........
> but still getting errors.
IMO, turning errors of is a bad thing, a program should run
smoothly without errors. Although with 3rd party packages
sometimes this is hard to avoid.
>
>
> - what causes "Undefined index" error?
An undefined index error is caused when accessing an index that
doesnt exist, so if you have an array as follows:
$var = array('index1' => 'value');
And you try to access:
echo $var['index2'];
The error will get displayed.
> - what is the problem on "function node_page()" (see below) ?
Sorry unable to help you with this.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."