title: Update data in sqlite use int array
body: <pre><code>/*
  &lt;Update total page&gt;
  work: Update total page
  input: title, new total page
  output: none
  */
  
  public void update_tot_page(String str_title, int int_newPageTot) {
      db = helper.getWritableDatabase(); 
  
      ContentValues values = new ContentValues();
      values.put("page_total", int_newPageTot);    
      //error-&gt;
      db.update("booklist", values, "page_total=?", new int[] {int_newPageTot});
      //&lt;-
  }
  </code></pre>
  
  <p><br>
  I want update total page in <code>booklist</code> table. <br>
  I find
          <code>db.update("booklist", values, "title=?", new String[]{str_title});</code> is not wrong. <br>
  By the way, why <code>db.update("booklist", values, "page_total=?", new int[] {int_newPageTot});</code> is wrong?<br>
  How should I <strong>change</strong> this <strong>sentence</strong>?<br></p>