Sizing Resistor
Sizing Resistor
Also, after you take spsnyder's advice to take 480's advice and determine the rating you will need, add a safety margin. For example, if you determine that the resistor will need to dissapate 1/4W of heat, don't choose a 1/4W resistor because the voltage or current may fluctuate, the resistor will vary in resistance, and the ambient temperature may be hotter than anticipated. That 1/4W resistor may become stressed.