Retreiving data from MySQL with html/javaScript on one domain and the PHP file on the other

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-04-13T14:22:48Z Indexed on 2010/04/13 14:22 UTC
Read the original article Hit count: 286

Filed under:
|
|
|

I need to retrieve data from a MySQL database, and have it work one way for all types of servers. For example it should work on a server that runs no server side language, it should also work on LAMP, and IIS.

I was thinking about using ajax and xmlhttprequest, but learned of the cross domain limitation. I also tried to just include the PHP in a tag, but it comes back with a syntax error in the HTML code created by the PHP file, even though it looks correct.

Does anyone know how to fix either of these issues, or have a different way to go about it?

© Stack Overflow or respective owner

Related posts about php

Related posts about AJAX