The Right-Handed Rule

As current travels through a wire  it generates a magnetic field.

This is the traditional way of demonstrating the right-handed rule. 
The thumb points in the direction of the current. The fingers show
the direction of the magnetic field as it goes around the wire
Our diagram demonstrate the same concepts. Here the red spheres
demonstrate the flow of electricity through the wire while the blue arrows 
demonstrate the direction of the magnetic field
animated gif by Marco Nobrega