I have a android app that sends data to my database. My php query is insert. My question is when i use the update query in php, do i need to change my android code or just in the php?
You only need to modify the query in the php web service. And only if you need to send an additional data, you would have to modify your android app.