The error on the update page is because you have updated your connection to use mysqli but the code on the page is still all mysql. It looks like you updated the connection by hand because it isn't in the webassist mysqli connection format as well.
You will need to open all of the recordsets and update server behaviors on the page and change them to use mysqli connections in order to get the code to be updated.