Click here to Skip to main content
12,633,990 members (22,898 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Ajax
how to connect in database and read data by ajax?
Posted 15-Feb-13 7:05am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You didnt specify what you are using but this tutorial should get you started,

http://www.tizag.com/ajaxTutorial/ajax-mysql-database.php[^]

You could always try google as well,
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Database will be on server side and any interaction would need ways to talk to server side from client side.

You can use XMLHttpRequest or Callback, using jQuery. Here, have a look:
http://api.jquery.com/jQuery.ajax/[^]
http://api.jquery.com/category/ajax/[^]
http://www.w3schools.com/jquery/jquery_ref_ajax.asp[^]

Try out.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100