Simon Makienok struck twice as Charlton boosted their Sky Bet Championship survival chances with a 4-1 win at fellow strugglers Rotherham.
Makienok's double and further strikes from Igor Vetokele and Ademola Lookman moved the Addicks within one point of their opponents, who had briefly levelled through Chris Burke.
The Millers had missed a good opportunity to get back in the game when Jonson Clarke-Harris blazed a 74th-minute penalty over the bar when his side trailed 3-1.
Peter Whittingham's stunning late free-kick ensured Cardiff would claim back-to-back away wins with a 3-2 victory at Huddersfield.
Whittingham had opened the scoring towards the end of the first half only for Nakhi Wells to level the scoring almost immediately.
Lex Immers put the visitors back ahead on his debut then Whittingham sealed victory before Harry Bunn struck an injury time consolation.
Bristol City and Birmingham ground out a goalless draw at Ashton Gate with Jonathan Kodjia and Kieran Agard both missing good chances for the home side.