Row_Inserting $rsold not accessible

You may enable debug and check the actual PHP error message.