Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

INSERT INTO DATABASE

I am trying to insert a new client into a database. I have used Jquery to get an array of all the elements of the form.

What i can't figure out is the best way to pull the elements from the array and insert the new entry into the database.

Any suggestions would be appreciated.

Trent

— asked November 24th 2010 by Trenton Bishop
  • database
  • desktop
  • insert
0 Comments

1 Answer

  • You can look in the API guides, and download the latest version of those (at the bottom you will find the database guide:
    [inline]http://developer.appcelerator.com/doc/reference_guides[/inline]

    A simple way to insert in your database is:

    coldDB.execute('INSERT INTO coldBeverages (beverage,value2) VALUES(?,?)', 'Juice,'Second value');
    
    — answered November 24th 2010 by Jacob van Dam
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.