I am building a website where the same image is being used multiple times, however each time there will be different text.

An ex colleague of mine advised that I could create one image and insert the different text using SQL.

Does anyone know if:

A - I'm remembering this correctly - it was over a year ago
B - My colleague wasn't talking twaddle
C - How do I do it