golanu21 Posted August 7, 2013 Share Posted August 7, 2013 dbExec( char_db, "UPDATE `??` SET `??`=?", tableName, columnName, columnValue ) there i need to modify ??, or just tablename columname and columnvalue .. ? Link to comment
motax Posted August 7, 2013 Share Posted August 7, 2013 tableName, columnName, columnValue variables should contain strings except maybe the columnValue it depends on what kind of data do you want to store there. like: tableName = "users" columnName = "money" columnValue = 5000 dbExec( char_db, "UPDATE `??` SET `??`=?", tableName, columnName, columnValue ) but that's a bad example.. hmm tableName = "users" columnName = "username" columnValue = user dbExec( char_db, "UPDATE `??` SET `??`=?", tableName, columnName, columnValue ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now