Maybe, because of this ?
$category[$row['name']] = $row;
.....
$cat = $category[$ii]['name']; //=======this is line 36==========
best regards Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php