title: Explanation of re-usable structures in OO PHP
body: <p>Can someone please explain "re-usable structures" for me?
  I was working on making some db objects in php, but was told I was using too much processing from the computer cause I made stuff to complicated with the below objects:</p>
  
  <p>My DB objects:</p>
  
  <pre><code>$db = new Database;
  $db-&gt;db_connect();
  
  $post_content = new DbSelect;
  $post_content-&gt;select('id', 'title', 'firstName', 'created', 'catName', 'tagName');
  $post_content-&gt;from('content');   
  $post_content-&gt;join('inner');
  $post_content-&gt;on('category','cat_id','id');
  $post_content-&gt;where('id','1');
  $post_content-&gt;order('created');
  
  $db-&gt;db_close();
  </code></pre>
  
  <p>Normal PHP:</p>
  
  <pre><code>mysql_connect();
  mysql_db_select();
  
  $query = 'SELECT id, title, s_name, created, cat_name, tag_name
                  FROM content
                  JOIN INNER category, cat_id, id
                  WHERE id=1
                  ORDER created';
  
  mysql_close();
  </code></pre>
  
  <p>So to reiterate my questions:
  1. A quick explanation of re-usable structures?
  2. why is the first method using objects "wrong"?</p>
  
  <p>please note: 
  I'll be googling this as well as hoping for feedback
  I know there a "tools" like Zend and other's that have plenty of db objects built into them, but I'm trying a DIY approach</p>