I have a very simple question... I'm sure that many people can help me.

I want to make an update-statement which updates fields in three different tables.

for instance:

table 1
- title
- id

table 2.
- title
- id
- table1id

table 3
- text
- id
- table2id

I know that the database-structure sucks... but it's the database I have to work with, unfortunately.
I want to update items in this database. Could someone help me out with a script?