title: delphi mysql query result
body: <p>for read data from database server im using mysql query like this:</p>
  
  <pre><code>FDQuery1.SQL.Text := 'select * from `table` WHERE dcid=3;';
  FDQuery1.Open;
  memo1.Lines.Add( FDQuery1.FieldByName('value').AsString );
  </code></pre>
  
  <p>but when i have to use a loop for read data from mysql</p>
  
  <p><strong>i need a array to read and store data on it</strong></p>
  
  <p>i know in php its like this</p>
  
  <pre><code>$arr = array();
  while($obj = $q-&gt;fetch_object() ){
      $arr[] = $obj;
  }
  </code></pre>
  
  <p>but how can i do this syntax in Delphi ?</p>