Are you changing the food frequently? There are lot of reasons this could happen but it is best to rule out any disease or infection, like mentioned above. But once you have a diagnosis you can give your dog steamed rice and cottage cheese as these are easy on the stomach and contain carbs and protein. If his bill of health is clean you might look at what kind of water he is drinking, is it fresh? Does he drink out of mud puddles? Does he eat things he should not like feces? Cat litter? His toys? Is he drinking out of a toilet treated with bleach?
I just spent 1000.00 this weekend on both of my rotties at the vet..They both had a stomach bug. For the vomiting the vet gave me human anti-nausea medicine ZOFRAN. And they told me pepcid AC as well. And they gave me a prescription called sulfasalazine and now they just called saying I can give my rotties Imodium ad over the counter adult pills.
You really need to take your dog to the vets, because its got diarrhoea, it could have worms, or it could have parvo virus so you really really need to get it checked out