I am building an application that allows users to search for other users by facebookid, email, or fullname and they need only enter a keyword. How do i build the query using connection.query? I use the mysql module. Below is my last try.
connection.query("select * from User where fullname like %? or facebook = ? or email = ? limit 50", keyword, function(err, result){
...
});