title: How to get value of a string for a db.transaction
body: <p>I'm stuck on a problem that should not be a problem ...</p>
  <p>Code: the transaction</p>
  <pre><code>db.transaction(function(tx) {
      tx.executeSql(insertStatementElement, [values], doNothing, onError);
  });
  </code></pre>
  <p>Example for values:</p>
  <p><code>[&quot;000096&quot;, &quot;The Gold Medal Collection&quot;, &quot;Harry Chapin&quot;, &quot;Elektra&quot;, &quot;140&quot;, &quot;AAD&quot;, &quot;Rock&quot;,         &quot;AA8&quot;, &quot;32&quot;, &quot;2&quot;, &quot;7.78&quot;, &quot;22.48&quot;]</code></p>
  <pre><code>var insertStatementElement = 
     &quot;INSERT OR IGNORE INTO Menu&quot; + counter + &quot;
       (CDNUMBER, TITLE, ARTIST, LABEL, PLAYINGTIME, RECORDINGTYPE, MUSICTYPE, BINLOCATION, NUMBEROFTRACKS, ONHAND, COST, RETAIL) 
       VALUES (?,?,?,?,?,?,?,?,?,?,?,?)&quot;
  </code></pre>
  <p>i got an error that the number of '?' in the sql statement does not match.</p>
  <p><em>EDIT</em>: If i do this change on my code...</p>
  <pre><code>var insertStatementElement = &quot;INSERT OR IGNORE INTO Menu&quot; + ebenecounter + &quot; (CDNUMBER) VALUES (?)&quot;
  db.transaction(function(tx) {
      tx.executeSql(insertStatementElement, [values], doNothing, onError);
  });
  </code></pre>
  <p>I get this result</p>
  <p><img src="https://i.stack.imgur.com/6kxFs.png" alt="Table example" /></p>