One (mg) is a mass unit; the other (ml)is a volume unit. You need a density to relate them.
You can ask a new question or answer this question.