use an abstraction library like Pear MDB2 for your database connection.
This abstracts all the connection logic away from your code, so should ever change your database (mysql to SQLite,etc) you won't have to change your code.
use an abstraction library like Pear MDB2 for your database connection.
This abstracts all the connection logic away from your code, so should ever change your database (mysql to SQLite,etc) you won't have to change your code.