Fylde dug deep to earn three huge points at Mill Farm on Tuesday night and climb out of the National League relegation zone.