Scrape off the old wax ring from the flange, toilet base, and floor using a putty knife. Inspect the flange for cracks, rust, ...
If you frequently use PVC pipes in your DIY projects, you should know how to glue them together. Here's how to do it safely ...