Add data script where

The issue where im facing with undefined index no idea why !?