add php code for getting dynamic data