title: mysql query to select one column where "" return only one result
body: <p>Here we go, my first question on stack overflow.</p>
  
  <pre><code>$conn-&gt;setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  
    $sql = "SELECT nodeurl FROM ownership where userid = 'jgm'";
  
  $stmt = $conn-&gt;prepare($sql);
  $stmt-&gt;execute(); 
          $config = $stmt-&gt;fetch();
  $xx = sizeof($config);
  
  echo var_dump($config);
  </code></pre>
  
  <p>mysql table is like this :</p>
  
  <pre><code>id - nodeurl - userid
  -----------------------
  1  - url_a   - jgm
  2  - url_b   - jgm
  3  - url_c   - seb
  4  - url_d   - jgm
  </code></pre>
  
  <p>If I do the query : <code>"SELECT nodeurl FROM ownership where userid = 'jgm'"</code> I'm expecting the result to get in an array url_a, url_b and url_d</p>
  
  <p>and if I do it for 'seb' i should get back url_c</p>
  
  <p>I'm running the query via my mysql client console, it work just fine. when i'm executing the code via my php, I receive only the first result ( one row only ).</p>
  
  <p>I'm completely stuck on that.</p>