title: How to code PHP MySQL class for master and slave setup?
body: <p>I have never used a master/slave setup for my mysql databases so please forgive if I make no sense here.  </p>
  
  <p>I am curious, let's say I want to have a master DB and 3 slave DB's.  Would I need to write my database classes to connect and add/update/delete entries to the master DB or is this automated somehow?</p>
  
  <p>Also for my SELECT queries, would I need to code it to randomly select a random DB server?</p>