Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-07-2009
Member
 
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.
Reply With Quote
  #2  
Old 30-07-2009
Member
 
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)
Reply With Quote
  #3  
Old 30-07-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 10:56 PM.