Connecting to mysql in game?

Hello can I make my game be able to access mysql database at a webserver? How can I do this if my scripts are in JavaScript?

Hi
This is a good php / mysql API to communicate through http:

Read the document, it is easy to use.

I use MySQL.h

MySQL.h? As I understand, mysql library compiles only in x86, not in arm.

I meant c++. Sorry for JavaScript can you use a simple web service connection? MySQL has an example in their docs iirc. I was wiring up to MySQL for a project this past weekend.