title: Return multiple rows as an array from a WebSQL databse using javaScript
body: <p>I want to return multiple rows as an array from a particular table in a database in <code>WebSQL</code> inside a <code>javaScript</code> function. Below is my code.</p>
  
  <pre><code>    function getCustomerAccountDetails(){
          var dataset;
          db.transaction(function(tx) {
              tx.executeSql('SELECT * FROM contacts', [], function(tx, results) {
                  dataset = results.rows;
              });
          });
          return dataset
      }
  </code></pre>
  
  <p>Any suggestions? </p>