Change application dependency from mysql to mysqli:
Create a 'DBConnect' Singeleton class to manage mysqli connections.
Convert all existing queries/result sets that use mysql extension to use
mysqli extension instead.
Debug Application after mysqli conversion.