You will need an intermediary, server-side language to process the MySQL request. Use can use jQuery's AJAX functions to trigger that request. Here is an article I wrote some time back explaining the basics. Some of this has likely changed by now, but should get you started -
http://evolt.org/node/26896/