Here are some following rulings which may help you:
An individual who suffers from incontinence and cannot control himself, if it is not difficult for him to perform wodu’ every time, he should have a vessel of water next to him so that every time urine or stool is discharged from him, he immediately performs wodu ’ and continue with his salah. If it was too difficult for him to perform wodu’ every time, then he should perform one wodu’ for every salah.
Case: An individual who suffers from Incontinence must perform wodu’ for every salah, and engage in the salah immediately. However, it is not mandatory for him to perform wodu’ in order to perform a forgotten sajdah, or a forgotten tashahhud, or the Ihtiyat} salah that must be performed immediately after the salah – provided it is performed immediately after the salah and without delay.
Case: An individual who suffers from incontinence such that urine is discharged from him continually must [take the necessary measures to] prevent the urine from reaching other parts of his body while performing the salah by, say, using a cotton-filled bag. As per obligatory precaution, the bag and the urine outlet should be rendered tahhir before every salah, if this does not constitute [undue] discomfort. Similarly, he who cannot control his bowels must [take the necessary measure to] prevent his faeces from reaching other parts during salah, if it were possible, and as per obligatory precaution, he should render his anus tahir for every salah if this does not constitute discomfort for him.
Case: An individual who suffers from a condition that renders him unable to control emitting wind, should act according to the duties of one who suffers from incontinence.
Case: It is not obligatory for the individual who has recovered from one’s incontinence condition to offer qada>’ (in lieu of) prayers for those salah he had performed during his illness, if he had performed those prayers according to his duties outlined.
May Allah grant you success