Prosecutor Maria Moore told the court two girls saw Max that evening falling over and staggering about near shops close to Cox's home in Nottingham and called the police.
Max was found at Cox's home with his flatmate around 8pm and was removed by officers because they were so worried about his health.
Moore said: "Due to the state of the dog the police officer, being an animal lover himself, took the dog to the emergency vet."
She said that Max, who Cox had owned for around three and a half months, was immediately put on an intravenous drip for eight to 10 hours to flush the alcohol out of his system.
He needed another 12 hours on a drip the next day to restore him back to full health.
The court heard that a vet said he would have suffered for around 12 hours after drinking the alcohol, mainly because he would have had trouble dealing with and understanding his surroundings when in such an inebriated state.
Max has since been given a clean bill of health and has been found a new home by the RSPCA.
Cox, who appeared in court wearing blue Bermuda shorts, trainers and a black T-shirt, was arrested on August 23.
In court on Wednesday he pleaded guilty to failing to ensure an animal's welfare, namely failing to prevent an animal from consuming alcohol, and was disqualified from keeping or owning a dog for three years and given a two-year conditional discharge.
Cox is currently serving a prison sentence for another offence, which was not specified in court, and is due for release later this month.
Magistrate JA Smith said: "It was not malicious - there were no weapons - it was just downright stupid, wasn't it?
"Especially with any dog that has Labrador blood in it. They are fervently hungry for food and drink.
"This could have had desperate consequences for him - a motor accident or anything.
"I do hope that when you do have a dog again you make jolly sure that your drinks are not in reach."
-AAP