daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Sep 22nd, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   var community = req.session.community;
  2.   var gameType = req.body.gameType;
  3.   var ip = req.body.ip;
  4.   var nickName = req.body.nickName;
  5.   var values = [community, gameType, ip, nickName];
  6.   client.query("INSERT INTO ips SET name = ?, gametype = ?, ip = ?, nickname = ?", values,
  7.   function(error, results) {
  8.     if(error) {
  9.       logger.error(error);
  10.       res.send('fail');
  11.     } else {
  12.       res.send('success');
  13.     };
  14.   });
RAW Paste Data
Top