Constipated

My baby is 3 weeks and her dr said to give her Pedialyte for constipation n some gel things that go in her butt. Is pedialyte really ok has anyone tried it. Do yall know if i give her pedialyte n then milk. She drink formula similac