Urgent advice please

My daughter is 3 1/2 years old and she has painful poops sometimes 
Well this time it just won't come out poor baby she's screaming cause she is in pain and just the liquid is passing ( I know that's mean large stool has too pass ) is there anything besides a sepository I can do to help her get it out???