}
    //$continue1 -- Database server can be connected
    //$continue2 -- Database exists in the server
    //$continue3 -- Tables are exist in the database
    if ($continue1 == 1 && $continue2 == 1 && $continue3 == 1) {
        $conn = new PearDatabase("mysql", $old_host_name . ":" . $old_mysql_port, $old_dbname, $old_mysql_username, $old_mysql_password);
        $conn->connect();
        $migrationlog->debug("MICKIE ==> Option = Alter DB details. From the given DB details we will migrate.");
        @session_unregister('migration_log');
        $_SESSION['migration_log'] = $migration_log;
        if ($conn) {
            $migrationlog->debug("Database object created. Going to create Migration object");
            $obj = new Migration('', $conn);
            $obj->setOldDatabaseParams($old_host_name, $old_mysql_port, $old_mysql_username, $old_mysql_password, $old_dbname);
            //$obj->migrate($same_databases,'dbsource');
            $obj->modifyDatabase($conn);
        } else {
            echo '<br><font color="red"><b> Cannot make a connection with the current database setup</b></font>';
            include "modules/Migration/MigrationStep1.php";
        }
    } else {
        echo '<br><font color="red"><b>ERROR!!!!!!Please check the input values, unable to proceed.</b></font>';
        include "modules/Migration/MigrationStep1.php";
    }
} else {
    //Return to the MigrationStep1
    include "modules/Migration/MigrationStep1.php";
    exit;
}
?>
	<script>