title: Notice: Array to string conversion on PDO database connection
body: <p>I'm trying PDO for database connection. somehow I get this error.. or notice but I dont know why, and it doesnt output the name...</p>
  
  <p>Notice: Array to string conversion in (location) on line 31, which is</p>
  
  <pre><code>     (print $row[0] . "\t";)
  </code></pre>
  
  <p>I dont know why?</p>
  
  <p>Full code:</p>
  
  <pre><code>         $query = "SELECT naam FROM paginas"; 
  
  
      try 
      { 
          $stmt = $db-&gt;prepare($query); 
          $result = $stmt-&gt;execute(); 
      } 
      catch(PDOException $ex) 
      { 
          die("Failed to run query: " . $ex-&gt;getMessage()); 
      } 
  
      $row = $stmt-&gt;fetchALL(); 
  
       print $row[0] . "\t";
  </code></pre>
  
  <p>Greetings,
  Merijn</p>