PHP / Smarty / AdoDB example