It's probably going to be as easy as replicing mysql*_ with mysqli*_ - alternatively you can use PDO_MySQL of course.

http://www.php.net/manual/en/mysqlinfo.api.choosing.php has some info on choosing, and http://www.php.net/manual/en/mysqli.quickstart.dual-interface.php shows the basic interface.