![]() |
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(" |
All times are GMT. The time now is 08:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|