Through a small needle, a special medication that allows the blood to be trapped in the corpora cavernosa may be injected directly in the penis five to fifteen minutes before intercourse. This usually gives an erection that can last up to one hour. The injection is given with a very thin needle. If you and your doctor choose this option, you will be taught how to administer the injections yourself.