Well, I didnt read your files, tried to view your images, didnt help me.
Anyway, Lets do some experience talk
You are trying to access any array index that does not exists.
Example:
-
<?php
-
$a['fruite'][0]='Apple';
-
$a['fruite'][1]='Orange';
-
$a['count']=2;
-
-
echo $a['fruite'][2]; //you will get undefined Index error. Why? Cause you didnt define index 2;
-
?>
-
Now in some situation you might fall
like
if $a[$id] exists then add $a[$id]=$a[$id]+$New_Value;
else $a[$id]=$New_Value;
in general some programmer(I have seen) they hide all the warning and error in the page and do like this.
-
$a[$id]=$a[$id]+$New_Value;
-
case like this php find his way out, but i believe this is not a very smart answer.
use this code
-
if(isset($a[$id])==true)
-
{
-
$a[$id]=$a[$id]+$New_Value;
-
}
-
else
-
{
-
$a[$id]=$New_Value;
-
}
-