Mysql error.
#1

,aallalla
Reply
#2

Delete ; at the end of every query.
Reply
#3

No luck ;/, any other ideas?
Reply
#4

The ; is fine. You didn't have to remove that. Here is your problem:

UPDATE users SET money = %d, score = %d, Shamal = '%d', Cargo = '%d', Helicopter = '%d', ban = %d, ban_reason = '%s', WHERE username = '%s'

Remove that comma at the end - it's not supposed to be there. It should be:

UPDATE users SET money = %d, score = %d, Shamal = '%d', Cargo = '%d', Helicopter = '%d', ban = %d, ban_reason = '%s' WHERE username = '%s'
Reply
#5

Cheers blacklite, that works perfectly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)