title: Common CRUD functions in PHP
body: <p>Is there a simple way to write a common function for each of the <code>CRUD (create, retreive, update, delete)</code> operations in <code>PHP</code> WITHOUT using any framework. For example I wish to have a single create function that takes the table name and field names as parameters and inserts data into a <code>mySQL database</code>. Another requirement is that the function should be able to support joins I.e. it should be able to insert data into multiple tables if required. </p>
  
  <p>I know that these tasks could be done by using a framework but because of various reasons - too lengthy to explain here - I cannot use them.</p>