Jump to content

adding to a number


hogwan.com

Recommended Posts

Hello;

I want to a number to a members points in my database.

 

So I have this :

//add 150 points

$query = \"UPDATE stats SET points = \'150\' WHERE id = \'$user\' \";

mysql_query($query, $mysql_access);

}

else {

// false, not working properly

 

}

 

However, I want to ADD points rather than replace the existing points completely. Is there a way to add on points? ...well I am sure there is but my study book (broke down and bought one) doesn\'t show how to attack that problem.

 

Any thoughts?

Link to comment
Share on other sites

Thanks Doc...

Yeah it worked as I am sure you knew...I don\'t feel too much like a shmuck for asking a question with such an easy fix...

This board is magic! I enter a question and *poof* there\'s the answer.

8)

 

Just so you know I have been playing with that for 3 days.....

 

Thanks again.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.