Potato People - /projects/imagemanip.class

MySQL Database Replication Class

I have several commercial projects running on multiple servers. These servers run MySQL replication. The problem with replication is that inserts and updates can only be run on the master server. I wrote this little database class to detect when it was connected to a 'slave' server, and if a modification query was being run, to connect to the master and run it there.

Icon  Name                         Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] mysql-replication.class.phps 2006-12-18 21:23 5.2K [   ] mysql-replication-1.0.tar.gz 2006-12-18 21:08 1.9K [   ] example.phps 2006-12-18 20:41 406
Apache Server at potato-people.com Port 80