How to insert image into form and save link into database along with text

Well,

This is how to do it: Insert <img> tag into Textarea

It has nothing to do with PHP, LOL.

I’m going in the wrong direction.