php code for updating location #157