in reply to Dynamic HTML via MySQL

$wheel->reinvent();

Take a look at HTML::Template. It's exactly what you're looking for, and its much more robust than rolling your own.

--rpc