update a value in my database.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xwhitchx
Forum Commoner
Posts: 38
Joined: Mon Jun 21, 2010 4:30 pm

update a value in my database.

Post 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.
rahulzatakia
Forum Commoner
Posts: 59
Joined: Fri Feb 05, 2010 12:01 am
Location: Ahmedabad

Re: update a value in my database.

Post 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.
Post Reply