question for those with IBS

So I think my husband has IBS or something like that. He spends sooo much time pooping (unhealthy poops) and literally everything upsets his stomach so he's on the toilet for like thirty minutes the next morning.. what were some symptoms that you had that caused you to get diagnosed? What do you do to help it? What did the doctors say?