PVC toilet flange replacement problems
Investigate the push tite replacement flange

It may be that the rubber gasket will form a seal below the damaged portion of your waste pipe. If it slides into the pipe and seats against the floor you can anchor it to the subfloor and you're back in business.

To see a variety of parts made for your kind of trouble look here