Remember the definition of the dot product:
[tex]\vec A \cdot \vec B = A_x B_x + A_y B_y + A_z B_z[/tex]
As you correctly stated, for two perpendicular vectors, the dot product is 0.
Let two vectors, [tex]\vec w, \vec q[/tex] be parallel. That means that they're both in the same direction, and therefore, they only differ by some scalar factor R (For instance, [tex]\vec q[/tex] could be 2 times longer than [tex]\vec w[/tex] (R=2) or it could be the same length, but anti-parallel (A negative R value of -1 would achieve that goal) or 2 times longer, but anti-parallel (R=-2)).
So in general, we can write: [tex]\vec q=R\vec w[/tex]
Note that we've written a vector equation. That's actually 3 scalar equations in one. Simply solve for your three variables, [tex]R, m, n[/tex] and you're done.
What's important is that you understand how we've identified parallel\anti-parallel vectors and perpendicular ones. Are these two points clear to you?