I have a website which is integrated with mysql database. There is a a database where some amount is stored using a counter. I have a link, which when clicked deducts some amount from the database. The query is executed succesfully by php but when i refresh the page. The previous value gets back How can i solve this problem Thankyou
I guess you re-sending data when refresh. Create a variable in $_SESSION on the page with form, and then check and change it on the handler page.