Results 1 to 3 of 3

Thread: Can a webpage fetch information from MySQL database using AJAX Technology?

  1. #1
    Join Date
    Jul 2009
    Posts
    18

    Can a webpage fetch information from MySQL database using AJAX Technology?

    I am learning MySQL database language & HTML, PHP with javascripts. I don't have any idea of AJAX technology.
    My question is can a webpage fetch information from MySQL database using AJAX Technology?

    Thanks.

  2. #2
    Join Date
    Apr 2008
    Posts
    54

    Re: Can a webpage fetch information from MySQL database using AJAX Technology?

    Hello & welcome to TechArena community.

    To answer your question YES it is possible to fetch records on a webpage from MySQl database using AJAX technology.
    Ajax, which stands for Asynchronous Javascript And XML.
    It is a group of interrelated web development techniques used on the client-side to create interactive web applications or rich Internet applications. With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page. The use of Ajax has led to an increase in interactive animation on web pages[1][2] and better quality of Web services due to the asynchronous mode. Data is usually retrieved using the XMLHttpRequest object. Despite the name, the use of JavaScript and XML is not actually required, nor do the requests need to be asynchronous.[3] (wiki)

  3. #3
    Join Date
    May 2008
    Posts
    32

    Re: Can a webpage fetch information from MySQL database using AJAX Technology?

    PHP Example - AJAX and MySQL

    AJAX can be used for interactive communication with a database.

    The following example will demonstrate how a web page can fetch information from a database with AJAX technology.

    Code:
    <html>
    <head>
    <script type="text/javascript" src="selectuser.js"></script>
    </head>
    <body>
    
    <form>
    Select a User:
    <select name="users" onchange="showUser(this.value)">
    <option value="1">Peter Griffin</option>
    <option value="2">Lois Griffin</option>
    <option value="3">Glenn Quagmire</option>
    <option value="4">Joseph Swanson</option>
    </select>
    </form>
    <br />
    <div id="txtHint"><b>Person info will be listed here.</b></div>
    
    </body>
    </html>
    You can see the working of this code on w3schools

    I hope you learn this at the site.
    All the best.

Similar Threads

  1. How to fetch records from multiple tables in a database ?
    By kALAMATHI in forum Software Development
    Replies: 4
    Last Post: 29-12-2010, 07:56 AM
  2. Using Ajax to Retrieve Data from a MySQL Database
    By warthogweb in forum Software Development
    Replies: 1
    Last Post: 19-11-2010, 10:46 PM
  3. Select to cascade ajax + mysql
    By Sahira in forum Software Development
    Replies: 6
    Last Post: 25-10-2010, 02:24 PM
  4. How to fetch mp3 information
    By Eber in forum Windows Software
    Replies: 6
    Last Post: 31-01-2010, 05:59 PM
  5. How to refresh part of webpage using AJAX
    By Hashim in forum Software Development
    Replies: 3
    Last Post: 03-09-2009, 08:36 PM

Tags for this Thread

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
  •  
Page generated in 1,711,627,287.88571 seconds with 17 queries