RGB lamp problem

@raron, I did use 100 ohm resistors on each pin of the led except for the common cathode.
@pauls, thank u for ur advice, but I don't have my arduino with me now. I will try it as soon as I can, and post whether it worked on this forum.