The correct relation between heat produced, H and electric current, I flowing is
H directly proportional to I2
We know that, Heat =Power×Time
And Power =VI=I2R [Ohm's Law, V=IR]
⇒ Heat =VIT=I2RT
Hence, we can conclude that the heat produced is directly proportional to the square of electric current flowing.