What API? (link to documentation)
What PHP script are you currently using? (You didnt post)
Have you tried this locally first?
Install a local copy of WAMP server...
create and call your ..php script.. see if it is saving to the database/table correctly?