Need mom advice badly!

My son is 10 months old. He got the stomach flu about two weeks ago. That lasted about 4 days and since then he has had horrible constipation. He screams bloody murder and squeezes me so hard, Its obvious he is in a ton of pain.

The doctor told me to give him more water and slow down on the formula. Well I've done that and more. With no results.

Pear, prune, apple juice. Veggies and fruit.

Its been ove a week of this and nothing is helping.

Not gas drops or gripe water. Not the windi, not bicycle legs, or a warm bath, absolutely nothing.

Please help. Please point me in some sort of direction. I'll try anything.