I used the padkit from the Association of Shareware Professionals
as a base framework (php
site with a Mysql database), and then used coupons for the content instead of software programs.
It at least gave me a working website
with all of the php
code I needed for connecting to a database, and all the php
code I needed for setting up web pages. Then it was just a matter of customizing it to meet my needs.