I'm not going to look through your jumbled mess of code. if you want help, you're going to need to sort all of that out for yourself, and post it so that it's READABLE.

however, if the red highlighted line is the problem, then it's probably because your explode() isn't picking up $arrData[3], which means it doesn't have 4 items in it. you could suppress the error by defining the $arrData variables with @$arrData[3], or you could check if they exist before assigning them values. either way, that value will still be blank.

you could also edit your PHP.ini to turn down the level of your error_reporting so that notices like that won't be displayed.