title: Is there an easy way to convert to PDO
body: <p>On my website I use both a postgresql and mysql database</p>
  
  <p>I want to convert to PDO as I have been informed that PHP will be removing the old mysql_ functions soon and I assume this means the pg_ functions will disappear as well.</p>
  
  <p>I only ever use:</p>
  
  <p>pg_connect/mysql_connect &amp; mysql_select_db
  pg_query/mysql_query
  pg_result/mysql_result
  pg_numrows/mysql_numrows (for checking if there is  a result, or looping through resultset)
  pg_fetch_array</p>
  
  <p>I have thousands of queries and don't relish the idea of going through every one.</p>
  
  <p>Is it possible just to go through and make global changes in my code to implement PDO?</p>