Really! The Earth's core is hotter than the outer layer of the Sun.
The Sun's huge boiling convection cells, in the outer visible layer, called the photosphere, have a temperature of 5,500°C.
The Earth's core temperature is about 6100ºC. The inner core, under huge pressure, is solid and may be a single immense iron crystal. The outer core is liquid, and probably acts as a dynamo creating our magnetic field.
But before you get the wrong impression, keep in mind that the core of the Sun is a broiling 15,000,000ºC. That's enough to vaporize rocks in a comet that gets too close, and enough to give you a nasty burn 93,000,000 million miles away after just a few minutes exposure when you're sun bathing.