Related post from my blog: http://addictedtonew.com/archives/82/php-and-mysql-table-wrapper/
info at phpclasses dot org