Results 1 to 2 of 2

Thread: AJAX and PHP

  1. #1
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default AJAX and PHP

    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.

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •