-put pvc pipe on top of wood the way you want it and duct tape it to hold it in place. This will also keep the pvc from rising when you put screws through the wood into the pvc.
-screw through the bottom of the wood up into the PVC, use as many screws as you need until it's secure
-take off duct tape
-profit