Can having diarreah make you pass out?

Dehydration. Dehydration and electrolyte (mineral) loss can cause those symptoms. Treatment requires rehydration with the proper fluids and electrolytes.