Thank you so much from the answer
I know the name of the destination table fields.
But I do not know what function, for example username is located.
Please name the function that the user name and password ... Say they are.
Now I put this code and the error was related to the database:
PHP Code:
$db->query_write("REPLACE INTO " . TABLE_PREFIX . "users (user_id, name, username, user_email, user_avatar, user_password) VALUES (userid, username, username, email, 'gallery/blank.gif', password)");