Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
268 views
in Q2A Core by

Please correct my query

UPDATE qa_users SET level =??? WHERE userid =1234;

Thanks.

1 Answer

+1 vote
by
edited by

The levels are defined in the file qa-include/app/users.php. The level for "editor" is 50:

define('QA_USER_LEVEL_EDITOR', 50);

so change your query to this:

UPDATE qa_users SET level = 50 WHERE userid = 1234;

...