Sorry to hear your little guy is not feeling well.
You will want to find out from the vet what he/she believes is wrong. This will help you care and watch for your pup.
It could be that his foot is in pain, drool sometimes is a result of pain. Could be nothing to do with his tummy.
Do you think he got his foot stuck in the crate somehow?