Combine text and images PHP MySQL

I’m doing this CMS. I already can automatically parse URLs, and insert binary data into a MySQL database. Thanks to you guys.

I can insert JPGs or GIFs to my database, but what would be the best way to insert the image into the body of the page.

For example:

database: CONTENT

table: TEST (contains the text that’s supposed to go in the body)
table: testBlobs (contains the images)

How can I display the text inside TEST and still display images inside testBlobs around the text?