title: PHP PDO echo SELECT statement
body: <p>I want to echo out the <code>SELECT</code> statement that is in the PHP file. </p>
  
  <p>It doesn't throw out an exception, however it doesn't throw the correct expected total from the query, it shows me 1 which is bizarre. </p>
  
  <pre><code>&lt;?php require("config.php"); 
      $stmt = $db-&gt;prepare("SELECT COUNT( * ) AS total_record FROM  `markers` WHERE fishspecies =  'Bass'");
      echo $stmt -&gt;execute(); 
  ?&gt;
  </code></pre>