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
https://forums.phpfreaks.com/topic/323-adding-to-a-number/
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
https://forums.phpfreaks.com/topic/323-adding-to-a-number/#findComment-1045
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.