If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

That is a common technique called SQL injection, there is a heap of information out there if you go Google. I would advise that you disallow the use of apostrophes, semi-colons etc in any of your input areas (textboxes and the like).

Aren't you glad you had that backup, eh!
Make sure you keep that up - frequent backups are key!