Guest User

Untitled

a guest
Jan 16th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. con.connect(function(err) {
  2. if (err)
  3. {throw err }
  4. con.query("SELECT id FROM Table_1 WHERE username = xyz AND password = aaa",
  5. function (err, result) {
  6. if (err) {throw err};
  7. con.query("SELECT table_3_id FROM table2 WHERE Table_1_id = "+(result)+")",
  8. function(/*bla-bla*/){
  9.  
  10. };
  11. });
  12. }
  13. );
Add Comment
Please, Sign In to add comment