From 8f75ed3ad4eed55be3ea82bd4bd80c7894447625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Sat, 1 Jun 2013 23:53:56 +0200 Subject: [PATCH] Started editing and adding real content. --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 4c6d23e..c643966 100644 --- a/server.js +++ b/server.js @@ -69,7 +69,8 @@ app.get('/', function (req, res) { database.each("SELECT * FROM players", function(err, row) { console.log('Received a player row! Weheeeee!'); console.log(row.name); - players.push(row.name); + var nextElement = players.length; + players[nextElement] = row.name; }); console.log(players);