The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Vbplaza Updating Points ?
I'm trying to write a custom script that will update a users vbux points from the user table. Basically in my php file I have the below code. Which works but does so in a wierd way.
Lets say user A has 20 points. The below script adds 10 points to their table to make a total of 30 points. However when I run it, the user now has 50 points because it takes 20 + 20 + 10. Is the SET statement not correct? Code:
$vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "user SET vbbux = vbbux + 10 WHERE post_groan_times > 0 "); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|