Using MySQL data to populate sections of HTML template and render page with CGI C++

One of the many ways to serve dynamic content is through templates and databases. We will demonstrate how to accomplish this idea using MySQL as our data source and MySQL++ to fetch data from MySQL server. CGI C++ renders our output. This procedure is done in a Debian 6 environment but should work the same with any Debian derivatives like Ubuntu. This is Part 2 of our C++/CGI blog series.