how to set active and inactive in php using ajax