You should not upgrade to PHP 7 if you are using standard MySQL database connections. It appears that you are, so I'd roll back to an earlier version of PHP.
The alternative is to use our "MySQLi Server Behaviors" extension to make sure you are using MySQLi for all database activity instead of MySQL.