sql.query('SELECT * FROM user WHERE uid="'+params.uid+'" LIMIT 1;',
function(res,errorNo) {
if (errorNo) { username = "mysql error"; }
else {
username = (res[0].name.length>=3 ? res[0].name
:(res[0].id>0?"USER
"+res[0].id:"Guest") );
}
cmd.user.setProperty('uid', params.uid);
cmd.user.setProperty('name', username);
Ape.addUser(cmd.user);
});
return -2;
hmm i don't know where the problem is, the username at the current
user write right, but the other users seeing undefined.
where is the mistake?
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/