do  ulcers cause diarrhea
Well, yes. But ulcers are not the only cause of diarrhoea. Ulcers in the small and large intestine do cause diarrhoeas. Examples are- diarrhoea caused in typhoid ulcers caused by Salmonella Typhi and paratyphi A & B, Ulcerative colitis etc.