Skip to main content
rob day
Community Expert
Community Expert
October 25, 2010
Question

Posting XML to a Database

  • October 25, 2010
  • 1 reply
  • 1461 views

I have an ongoing project that outputs xml data to my client's server via a php script. The client would like to move the XML into a database, and their database company has instructed me to POST the XML to a web address with a form field linked to the database. This produces a server error (if I manually paste the XML into the form it works). In order to get this to work, does there need to be a PHP or some other server side script between Flash and the database? Thanks.

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
October 25, 2010

Yes, Flash cannot interact with a database directly, and PHP is one of the most commonly used middlemen for accomplishing the back and forth.  If you Google "AS3 PHP mySQL tutorial" you'll probably find some useful tutorials.

rob day
Community Expert
rob dayCommunity ExpertAuthor
Community Expert
October 25, 2010

Thanks Ned, I've always used PHP, just wanted to make sure I wasn't missing an easier route.

Ned Murphy
Legend
October 25, 2010

You're welcome