Yes you can mix mysql with mysqli without issues.
Does the update work? It looks like you have several blank lines in your php code... those will cause issues with the redirects after insert or update. You should definitely remove them from lines 3,67,68,70,75