LOL, You cant do that as JavaScript is at client side and MySQL is on the server side. Though you cant do that with purely JavaScript you can however communicate with a server through an xmlhttprequest object, its referred to as AJAX (or activex, java, actionscript)
dotnetrobert.com, no self promotion in posts. Use your signature for linking to your sites which you think can link in every post you make. If you continue with the effort your account will get banned as well as your site being flagged as spam.