I want to update mysql table pin if Pin field value is the same as the user input pin.In this case, I want to update appid field in the pin table once the the select query retur
Add one more field "number_update" in your database table as suggested by Mr. Neo and replace your code with the above code.