I want to rewrite a PHP4 application (the client does not want to go to PHP5 at this time). My goal is to have a class for each table, and if possible, have one class to open the DB and have the structure of the "table" classes structured so that only one DB handle would be active, regardless of how many tables are accessed.
And if possible, have one destructor (register_shutdown_function(array(&$this, "__destruct") ); that would close the DB handle.
Can this be done?
Todd