Posts: 4,510
Threads: 163
Joined: Mar 2008
Reputation:
0
I couldn't find a proper tutorial or a filterscript that might help me out. Can i please, see a code, that saves 2 things with a value?
Also reading. I would appreciate this a lot!
Posts: 6,129
Threads: 36
Joined: Jan 2009
Код:
UPDATE <tableName> SET <fieldName> = '', <fieldName2> = '' WHERE <matchingCriteria> = ''
Example in use:
Код:
UPDATE playerAccounts SET playerName = 'Calg00ne', playerAdminLevel = 2 WHERE playerID = 6
Integers do not need to be wrapped in single quotes, format your query to set the values as necessary, then simply send it out with mysql_query (you *probably* won't need to thread this query).
Posts: 6,129
Threads: 36
Joined: Jan 2009
Search, there's thousands of tutorials on the internet and there's thousands of tutorials explaining usage of the MySQL/SQLite functions.
Posts: 6,129
Threads: 36
Joined: Jan 2009