• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Solved] SQL Command

mpa

Member
Joined
Oct 8, 2008
Messages
319
Reaction score
13
Location
Sweden
PHP:
UPDATE players WHERE group_id=2 AND lastlogin < UNIX_TIMESTAMP() - 14*24*60*60 SET group_id=1
Can someone change this so it works?
 
Last edited:
PHP:
UPDATE players SET group_id= 1 WHERE group_id= 2 AND lastlogin < UNIX_TIMESTAMP() - 14*24*60*60
 
I have a new problem:
What's wrong with this?
PHP:
UPDATE accounts SET premdays+ 10 WHERE premdays> 1
 
PHP:
UPDATE accounts SET premdays = premdays + 10 WHERE premdays > 1
 
Back
Top