title: Checking sqlite query results
body: <p>How do I check if an sqlite query returned anything before I stop looping through results.</p>
  
  <pre><code>//see if there are results and do something if not
  while(sqlite3_step(selectstmt) == SQLITE_ROW) 
  { /*process on reults */}
  </code></pre>