AJAX, PHP, Mysql simple query example anyone?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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.


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.

Site Timeline