Hi, welcome to the forum, your symptoms strongly suggestive of food
allergy and subsequent gastro intestinal anaphylaxis and broncho constriction. In such cases diarrhea usually begin two to six hours after ingestion.
Determination of the food you are allergic to, is one of the challenges which you need to pass through. The common existing food allergens are Peanut flour, peanut butter, powdered egg white, Powdered/fresh milk Soy milk, soy flour Wheat breads, flour etc.