ho emuch energy does a photon have
A photon can contain as much energy as you want. All electrons have exactly 1 unit of electric charge, no more, no less. Energy, by contrast, is proportional to frequency: E=hf, where h is the Planck's constant (6.6x10^-34 Joule-seconds).