How severe is the diarrhea, and what kind of dog do you have? If it's severe, meaning there isn't much stool but it's mostly water, your dog is in need of emergency care. If he's been squirting for several days, then it's something more serious than an upset tummy.
Pepto tablets are a good place to start for a dog with an upset tummy or food-related diarrhea. As long as the dog is drinking plenty of water, he can go without food for a day or so to allow the intestines to calm down. Start back on food by trying plain boiled white rice (no salt, etc.). You can cook it in low-salt canned chicken broth to get him more interested in it. Next day, add a little canned white meat chicken and see how it goes.
My vet always said to try rice and ground meat mix or pepto bismal they get the child dose