title: PDO get data from database
body: <p>I started using PDO recently, earlier I was using just MySQL.
  Now I am trying to get all data from database.</p>
  
  <pre><code>$getUsers = $DBH-&gt;prepare("SELECT * FROM users ORDER BY id ASC");
  $getUsers-&gt;fetchAll();
  if(count($getUsers) &gt; 0){
      while($user = $getUsers-&gt;fetch()){
          echo $user['username']."&lt;br/&gt;";
      }
  }else{
      error('No users.');
  }
  </code></pre>
  
  <p>But it is not showing any users, just a blank page.</p>