hi,
I am facing problem in accessing database using ajax with php as i am new to it...
can anybody tell me the concept from basics...
thanx...
accessing database using ajax with php
The concept is that an HTML page is rendered with underlying javascript. That JS will use (more than likely) an XMLHttpRequest to call to the server for a specific file. The server will then take that request, see the file being requested, execute/interpret/run the file, and send the results back to that request object. JS then takes a look at the object. If it's okay, it parses it and displays it on the HTML page. If not, then it shows an error.
Any good AJAX book will go over the basics with you. Typically it's best to send the data back in proper XML format. That way you can store much more information in one request. Plus, JS likes XML (hence the X in AJAX) better.
Hope that help you out some. If you search the internet for an AJAX function, I'm sure you'll find a bunch.