A novel type of photonic background-free multiband arbitrarily phase-coded microwave signal generator with power fading elimination capability is reported. An $x$ -polarized phase modulated optical signal and a $y$ -polarized radio frequency (RF) modulated harmonic single-sideband (HSSB) optical signal are produced based on a dual-polarization quadrature phase shift-keying modulator (DP-QPSKM). After polarization modulation to intensity modulation conversion, a microwave signal with arbitrarily phase encoding in multiple frequency bands is generated. Benefiting from the phase modulation state of the driven electrical coded signal, the generated arbitrarily phase-coded signal has no baseband components. Moreover, the equivalent HSSB modulation ensures the system can realize antidispersion transmission of one-to-multi base stations (BSs). The main distinct highlights of our generator are multifunction. The proposed single-modulator-based photonic scheme can achieve phase encoding in arbitrary format over multiple frequency bands and transmit over long-distance single-mode fiber with the elimination of power fading simultaneously. This work is pretty promising in multiband radar systems for one-to-multi BSs transmission and can increase the detection range, range resolution, Doppler tolerance, and sensitivity of objective recognition of radars.