Answers for "node js check if a user exists in mysql"

1

node js check if a user exists in mysql

connectDB.query("SELECT ACCOUNT_ID FROM registration WHERE ACCOUNT_ID = '"+ userAccnt +"'", function(err, result, field){
     if(result.length === 0){
        //new user logic
}else{  
    //existing user, redirect to another page 
 }
        }
Posted by: Guest on May-09-2020

Code answers related to "node js check if a user exists in mysql"

Code answers related to "Javascript"

Browse Popular Code Answers by Language