Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2008
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Getting values from a database

    Hi All,

    I have a button in my HTML. On clicking the button, I need to retrieve some data from the database and display it in the list in the HTML. How do I do it?

    Any help?

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,982
    Thanks
    203
    Thanked 2,536 Times in 2,514 Posts
    Ajax.

  • #3
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    As Philip tongue-in-cheek suggested, you'll want to google AJAX and check out some tutorials.

    In specific you'll probably want to use the Javascript XMLHttpRequest object to ask a server-side API (I suggest written in PHP and MySQL) to return your database data.

    Google tutorials for these:
    Javascript XMLHttpRequest
    PHP and MySQL
    Feel free to e-mail me if I forget to respond ;)
    ohsosexybrit@gmail.com

  • #4
    New Coder
    Join Date
    Dec 2008
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks itsallkizza and Philip. I will start working on AJAX to fulfill the requirement given to me


  •  

    Posting Permissions

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