Baby steps fendi, baby steps...
Learn programming first, then the PID algorithm should be pretty clear (after all, the tuning is where most of the work is). Read through the other tutorials too, especially the one on motors.
Anyways, you can't do PID control on DC motor velocity until you have some way of measuring the velocity, so you also need an encoder or do back EMF measurements.