What should we do if my daughter eyes have been running with a yellow discharge?

To see her doctor. Heavy eye discharge could be a sign of bacterial conjunctivitis, so called pink eye.
See doctor. Both eyes makes is sound like infection. You can use warm compresses and clean them, if it persists or vision is affected you need to see eye care professional immediately.