10.02.2012, 14:25
(
Last edited by Konstantinos; 10/02/2012 at 03:08 PM.
)
Hi, I am learning SQLite and maybe soon MySQL (after the final exams on school).
I would like to ask a question about the UPDATE Statement.
Which from both is the correct because the compiler doesn't respond when I am trying to compile it.
Or something on this is wrong `Field` or something at my code because it's very big.
OR
The first is `Score` and the second is Score
Regards,
Edit: Solved, thanks to all!
I would like to ask a question about the UPDATE Statement.
Which from both is the correct because the compiler doesn't respond when I am trying to compile it.
Or something on this is wrong `Field` or something at my code because it's very big.
PHP Code:
new
Query[ 200 ],
name[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, name, sizeof( name ) );
format( Query, sizeof( Query ), "UPDATE `Users` SET `Score` = '%d' WHERE `Username` = '%s' COLLATE NOCASE", GetPlayerScore( playerid ), DB_Escape( name ) );
db_query( Database, Query );
PHP Code:
new
Query[ 200 ],
name[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, name, sizeof( name ) );
format( Query, sizeof( Query ), "UPDATE `Users` SET Score = '%d' WHERE `Username` = '%s' COLLATE NOCASE", GetPlayerScore( playerid ), DB_Escape( name ) );
db_query( Database, Query );
Regards,
Edit: Solved, thanks to all!