got inactive php code working