Frank, there was an extra dot in the file you sent me
Anyhow, I looked at it again and I think I see the problem (maybe).
You seem to have deleted an extra line too much.
Right under the line you pasted, should appear:
Code:
$userid=$DB_site->insert_id();
But in your file it's missing.
That would explain the error you pasted in the earlier posts - there was simply a missing userid!
So paste this line back, right under the "insert", and you should be fine.