PDA

View Full Version : AJAX and PHP



jfreak53
08-14-2008, 01:25 PM
Don't know much about ajax so I need some help here. All I want to do is in a php page have a button that calls a php file that gets data from a database and then loads this data(pictures) in a place on the page without reloading the page? How do I do this with ajax?

Thanks in advance.

boogyman
08-14-2008, 02:20 PM
have you looked at any tutorials? are you familiar with php?

If you are familiar with php, then you can start by grabbing the information necessary, in this case the picture details, then to build the interaction between the two see
http://www.w3schools.com/Ajax/ajax_xmlhttprequest.asp