title: How can I convert mysql_fetch_assoc to PDO?
body: <pre><code>$result = $db-&gt;("SELECT `count` FROM playerCount");
  while($row = mysql_fetch_assoc($result)) {
        echo $row['count'];
  }
  </code></pre>
  
  <p>How can I convert line:
  while($row = mysql_fetch_assoc($result)) { </p>
  
  <p>to PDO?</p>
  
  <p>Thanks.</p>