Undefined offset error in Php
Undefined Offset error in Php occurs sometimes when these conditions satisfy
a)When there are empty variables in the script
b)and when the Error Reporting is set too much in Php.ini
If you do n’t want the error to display then you can simply set
ERROR_REPORTING(0);
at the top of the script which would turn of all Error Reporting.. or otherwise you can just edit php.ini with lesser Php error Reporting configurations instead of E_ALL
you can see more about this here http://www.php.net/error_reporting