How to increment a value in db on button click using php
Posted: Mon Jul 27, 2009 11:08 pm
Dear Memebers,
I wanted to make to buttons named as add / delete. when I click on the add button the value stored agianst this button should be incrementedm, and the button will be disabled after one click, but the other button is enabled, when I click on the delete button the value incremented in the add button should be decremented and the values against the deleted should be inncremented. now the delete is diabled. It means when one is enabled the other one should be disabled and the values will be incremented and decremented against buttons clicks in db.
Plz do help me in that secnario. I am not been able to build the logic what to do.
I wanted to make to buttons named as add / delete. when I click on the add button the value stored agianst this button should be incrementedm, and the button will be disabled after one click, but the other button is enabled, when I click on the delete button the value incremented in the add button should be decremented and the values against the deleted should be inncremented. now the delete is diabled. It means when one is enabled the other one should be disabled and the values will be incremented and decremented against buttons clicks in db.
Plz do help me in that secnario. I am not been able to build the logic what to do.