How to increment a value in db on button click using php

Dear Memebers, I am new to php.I have a regarding using auto incremnet

Page 1 of 1

1 Replies - 3850 Views - Last Post: 27 July 2009 - 09:47 PM Rate Topic: -----

#1 junjua  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 23-April 08

How to increment a value in db on button click using php

Post icon  Posted 27 July 2009 - 08:25 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.

Is This A Good Question/Topic? 0
  • +

Replies To: How to increment a value in db on button click using php

#2 CTphpnwb  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 3098
  • View blog
  • Posts: 10,884
  • Joined: 08-August 08

Re: How to increment a value in db on button click using php

Posted 27 July 2009 - 09:47 PM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1