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 5 to 15 minutes before intercourse. This usually gives an erection that can last up to 1 hour. The injection is given with a very thin needle. If you and your health care provider choose this option, you will be taught how to administer the injections yourself.