AJAX, PHP, Mysql simple query example anyone?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ivan Marsh

    AJAX, PHP, Mysql simple query example anyone?

    Hey Folks,

    I'm having a heck of a time wrapping mind around AJAX.

    Anyone know of a simple, straight-forward example for pulling a simple
    query from mysql with PHP using AJAX?

    As I understand it I need a PHP script that pulls the query and dumps the
    data into XML format, that is called by triggering a javascript event that
    reads that file with XMLhttprequest.

    Is there a cross-browser way of doing this or do I have to detect whether
    I'm using IE or Mozilla?

    A good example that doesn't look like rocket science would be nice.

    -thx

    --
    The USA Patriot Act is the most unpatriotic act in American history.
    Feingold-Obama '08 - Because the Constitution isn't history,
    It's the law.

Working...