It sounds exactly like a urinary tract infection. You need to get some antibiotics for the little girl.....