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.