title: Inserting Data with Node.js
body: <p>I 'am trying to insert some data with Node.js.  I installed mysql support with npm .  I just checked arround some source code, I've wrote following code , I can  follow sql output in console.log and SQL output is correct. But It does not affect on any rows in mySQL database.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>var mysql      = require('mysql');
  
  var connection = mysql.createConnection({
    host     : 'cccc.net',
    user     : 'username',
    password : 'password',
  });
  
  var post  = {srcUserID: userSrcID, destUserID: msg.userid, messageContent: msg.txt, messageSendDate:sendDate };
  
  connection.query('INSERT INTO messages VALUES ?', post, function(err, result) {
  
  });
  </code></pre>