Watch this video from This Old House to learn how to work with PVC pipe.
1 Cut PVC pipe with handsaw, then deburr the inside of pipe to remove any roughness.
2 Dry-assemble the pipe and fittings.
3 Use felt-tip marker to draw positioning lines across pipe and fittings.
4 Clean pipe end and inside of fitting with PVC primer.
5 Apply PVC cement to pipe end and inside of fitting.
6 Immediately assemble the glued part, making sure the positioning marks are aligned.
7 Hold the assembly together for three seconds.