Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I need to update two tables in android mysql database at the happening of one event, can anyone show me such example?

What I have tried:

i haven't got a single idea till now on how to do it
Posted
Comments
Sergey Alexandrovich Kryukov 27-Jun-16 18:25pm    
Do you want an idea how to update just one table on some event? If so, what difference the second table may make?
—SA
[no name] 27-Jun-16 20:29pm    
Just send your request 2 times (first table update, then second table update) or send only 1 request and in your PHP code, do updates for 2 tables.
Member 12599846 28-Jun-16 3:42am    
Try to use this concept

try{
//update first table
///if true
try{

//update second table
}finally{


}
}finally{

}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900