title: Using the phonegap framework with node.js, javascript, html, mysql and css
body: <p>Can someone please show me an example of how we use phonegap and node.js to push and pull data  to mySQL database from an html page/form .</p>
  
  <p>THANKS</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>var connection = mysql.createConnection({ host : 'localhost', user : 'root', database :'nodejsmysql', password : '' });
  connection.connect();
  connection.query('SELECT * from nodejs', function(err, rows, fields) {
     if (err) throw err;
     console.log('The solution is: ', rows[0].fname); }
  );
  connection.end();
  </code></pre>
  
  <p>I have the above code which works very well, But I dont want to display my results on the console, instead I want to display them on an html textBox</p>