class design question

From: Date: Mon, 12 Jan 2004 22:37:31 +0000
Subject: class design question
Groups: php.general 
Request: Send a blank email to php-general+get-174382@lists.php.net to get a copy of this message
hi there. i am working out the finishing touches on a authentication class that uses mysql to store the time of last access and some other goodies. my question is, when developing a class that uses a database, what is the best way to handle the database bit? for now i just set the connection in an .inc file and include that in the class, but there has got to be a better way - especially for portability sake. thanks for any suggestions. - rogue

« previous php.general (#174382) next »