Attachments to database

Hi.

I’m working on an html page that works like the update.html,
particularly where attachments are saved to the database, however I
can’t seem to duplicate the attachment to database functionality quite
right.

Are there any pointers to this?
I’ll post code later.

Thanks.
Kind regards.

Luke