selected spinner value is updated in mysql db via soap webservice in android

大兔子大兔子 提交于 2020-01-05 04:01:07

问题


hi i got the solution for selected spinner item is inserted in mysql database through calling soap webservice..thanks for giving nice ideas.but i can't develop update spinner value is save in mysql database.please refer my code:android code

webservice code ...the above both link for inserting code for both android and webservices....please help me...what line is change for update spinner value also change in mysql database....

     public class update {

 public String insertData(String status,String username){

  try{

   Class.forName("com.mysql.jdbc.Driver");
   Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/androidlogin","root","");
   PreparedStatement statement =  con.prepareStatement("UPDATE `user` set `status` = 'C'  where `status` = 'Q'");
   int result = statement.executeUpdate();
  }

   catch(Exception exc){
    System.out.println(exc.getMessage());
    }

  return "Updation successfull!!";
  }

}

please help me how is wrote android code for this update function...

来源:https://stackoverflow.com/questions/12104500/selected-spinner-value-is-updated-in-mysql-db-via-soap-webservice-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!