Sorry Ray - think I posted the wrong version of the page I was looking at.
I have attached a revised version now - same link and login as before.
So it should be referencing the UserID of the tree_users table with the fields it should update.
This is giving me the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `UserID`='7857'' at line 1
Not sure why, as its fine when the page loads before submitting the form?