RE: [PHP] Help With Error
| From: | Pablo Gosse | Date: | Mon, 18 Oct 2004 02:24:52 +0000 |
| Subject: | RE: [PHP] Help With Error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-199690@lists.php.net to get a copy of this message | ||
[snip]
Notice: Undefined index: 0 in
L:\localhost\catalog\catalog_0.1.0\includes\classes\tree.class.php on
line
77
[/snip]
It's telling you that $data['0'], which is used twice in your query, is
not a valid index (ie. it doesn't exist) for the $data array.
Why don't you dump the $data array after it is set to see where the
problem is:
$data = $this->get_cat_coord($child);
print_r($data);
die();
Take a look at what comprises the $data array and you should find your
problem.
HTH,
Pablo