CrazY your query is wrong. You are not specifying the fields for the data you are trying to set.
My bad crazy, you're right. As long as all fields are supplied and in the correct order, your method will work. I've never personally used INSERT without specifying field names and I literally write SQL at work almost every day. Still, I think it's good practice to include field names, but thats just my opinion.
jonatat, when a player connects then use a query to retrieve their data and store it in an array. On disconnect, if data exists in the array, use an UPDATE statement. If the array is null, use an INSERT statement.
Code:
INSERT INTO tblTest (SteamID, Val1, Val2) VALUES ('STEAM:0:12345',12,34);
UPDATE tblTest SET Val1=55, Val2=66 WHERE SteamID='STEAM:0:12345';
__________________