- Joined
- Aug 3, 2008
- Messages
- 172
- Reaction score
- 26
Hi,
My PHP vote script works fine, except that users are required to log-off in order for the update query to run succesfully.
I removed the logged_in check to see if maybe that alone would allow users to gain NX without having to log off, but it doesn't work. It does, however, update the table temporarily but then reverts back to their original NX amount before voting.
So the issue is that they must be logged off, but was hoping someone could advise how I could make it work while they stay logged in.
My query to update their records is:
Thanks
v83 solaxia-based
My PHP vote script works fine, except that users are required to log-off in order for the update query to run succesfully.
I removed the logged_in check to see if maybe that alone would allow users to gain NX without having to log off, but it doesn't work. It does, however, update the table temporarily but then reverts back to their original NX amount before voting.
So the issue is that they must be logged off, but was hoping someone could advise how I could make it work while they stay logged in.
My query to update their records is:
PHP:
mysql_query("UPDATE accounts SET nxCredit = nxCredit + '8000' WHERE name='" . mysql_real_escape_string($_POST["name"]) . "'");
Thanks
v83 solaxia-based