Results 1 to 3 of 3

Thread: PHP + Javascript/AJAX + Access DB

  1. #1
    Join Date
    Aug 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default PHP + Javascript/AJAX + Access DB

    I've hit a bit of a snag here. I load a simple grid (displays after an onclick event occurs inside a unique DIV). I'd like to populate that grid with data stored in an Access database based on that DIVs ID. When new data is added to that grid and the submit button is pressed I'd like it to also add that data to the Access database. Is this possible?

  2. #2
    Join Date
    Aug 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Anyone? I can post code if necessary.

  3. #3
    Join Date
    Apr 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, you're basically looking at sending an AJAX request to a PHP (or ASP) script somewhere on your server that runs the INSERT query for you, and then returns the new table data.

    Once you have received the new table data, you must set this to the innerHTML property of your containing DIV. You can find a detailed step-by-step tutorial here:

    http://www.w3schools.com/AJAX/ajax_database.asp

    Thanks,
    Ben

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
  •