If you did what I told you to do correctly it would do exactly what you want.
Something like this:
Code:
CREATE TABLE IF NOT EXISTS users_maps (ID INTEGER PRIMARY KEY AUTOINCREMENT, steam_id VARCHAR(34) UNIQUE, session_id VARCHAR(12), map VARCHAR(32));
Then
Code:
REPLACE INTO users_maps (steam_id, session_id, map) VALUES ('%s', '%s', '%s' );", steam, readMatchID, map_name);
Calling this would insert a new record for STEAM_0:0:12345
REPLACE INTO users_maps (steam_id, session_id, map) VALUES ('STEAM_0:0:12345', 'testID1', 'map1" );
Calling this would over-write STEAM_0:0:12345's existing record with testID2 and map2 (technically delete the old and insert new)
REPLACE INTO users_maps (steam_id, session_id, map) VALUES ('STEAM_0:0:12345', 'testID2', 'map2" );
__________________