title: Fetching multiple columns of a database
body: <p>I needed to grab one full column of a database and only that column, and have it returned as an array. I was using <code>$qarr1 = $stmt-&gt;fetchAll(PDO::FETCH_COLUMN);</code>, which worked perfectly. I now need to pull a second column from that data and have it saved as a separate array, but I can't use <code>fetchAll()</code> for this because of cursor problems. I am still brand new to PHP and don't quite understand the whole concept of the cursor, and I'm having difficulty understanding the arguments for <a href="http://php.net/manual/en/pdostatement.fetch.php" rel="nofollow"><code>fetch()</code></a>. Is someone able to explain what I could do instead of using <code>fetchAll()</code>?</p>