title: JavaScript to update MySQL?
body: <p>:)</p>
  
  <p>I'm hoping to make a <strong>very</strong> simple rating system. It won't consist of anything like averages, it's literally vote up or vote down, so if there's more votes down it'll go into a minus stance.</p>
  
  <p>What I'd like is for when the links to vote up/down are clicked, the page isn't refreshed, just that rating number. I'm guessing I can do this with JavaScript's append once it calls the new data, however I've no idea how to run the MySQL query with JavaScript.</p>
  
  <p>From what I understand, this isn't all that safe so I'm hoping  I can run it from a PHP file?</p>
  
  <p>Can anyone tell me how to do this please?</p>