Page 1 of 1

update a value in my database.

Posted: Wed Jun 23, 2010 12:39 pm
by xwhitchx
hello everyone, im in need of ether the code or just what to use to update a value in my database.

im wanting to add money to it, so if i click on a button it will add a set number to the database.

EXP:

I have $5

"click button to add $10"

you now have $15

if you need me to exsplane better let me know.
thanks for your time.

Re: update a value in my database.

Posted: Thu Jun 24, 2010 9:03 am
by rahulzatakia
Hello, you can first fetch the number from database e.g. $5, after that add number e.g. $10 and then you need to update the database with the result. If you want me to write code for you then provide your code and database field names, so I can work on it and give you the exact solution.