title: Loop through Mysql Results
body: <p>This is the code I have:</p>
  
  <pre><code>r = ''
  while True:
      data = result.fetch_row()
      r+= record[0][0] + record[0][1] + record[0][0]
  print r
  </code></pre>
  
  <p>What I want to do is, first fetch all the rows:</p>
  
  <pre><code>data = result.fetch_row(0)
  </code></pre>
  
  <p>and then run a loop for "data"</p>
  
  <p>rather than do it within the while loop.</p>