String t1=txt1.getText();
String t2=txt2.getText();
s.execute("insert into hello values(t1,t2)");
I want to store the record in database through TextField,But there is the problem "insert into hello values(t1,t2)".
please help me to solve this.
this code works fine but wat if i wish to save all d data to b inserted in a table get saved in different objects...? suppose in the above example if i write int id=1; String nm="komal";
but this doesnt work...wat shoulb the solution??
Insert in databse using gui TextFieldALI SHER June 5, 2011 at 5:00 AM
String t1=txt1.getText(); String t2=txt2.getText(); s.execute("insert into hello values(t1,t2)"); I want to store the record in database through TextField,But there is the problem "insert into hello values(t1,t2)". please help me to solve this.
ErrorHusain October 16, 2011 at 9:48 PM
this code works fine but wat if i wish to save all d data to b inserted in a table get saved in different objects...? suppose in the above example if i write int id=1; String nm="komal"; but this doesnt work...wat shoulb the solution??
Post your Comment