Dynamically Update Data Value In Android
In my first activity have to develop login form(username,password and button) via soap calling..it is worked successfully. In 2nd activity have to listview using xml parsing...it i
Solution 1:
You can't update like this because you are updating same value on which you are putting where condition.
Suppose you want to update orderid 12 to 13 then your query should like this
String orderid1 = 13;
String orderid2 = 12;
"UPDATE xcart_orders
set status
= '"+Status+"',orderid
= '"+Orderid1+"' where orderid
= '"+Orderid2+"'"
But in your case you are using same variable at both places, It will work if upcoming values exists in your database but there is no meaning for executing that query in that case.
If you still have any doubt revert back.
Post a Comment for "Dynamically Update Data Value In Android"