Sunday, 2 June 2013
Facebook StumbleUpon Twitter Google+ Pin It

Ajax PHP Database Operation

Ajax PHP database operation

Hi, In this tutorial you’re going to find out ajax php database operation i.e. how to show list of values from db using ajax via php
When a user selects a Name in the dropdown list below, a function called “showDetails()” is executed. The function is triggered by the “onchange” event :
In the above code we are passing value of the option to the function showDetains() onChange

Ajax Source

Ajax function receives the value and checks whether it is an empty value if it is an empty value it returns blank otherwise it sends the value to results.php with GET method and then it will receive the output given from results.php and shows it in the results div area

PHP source

results.php gets the value and using mysql query the results have been extracted from the db
-By Parthiv Patel
Parthiv Patel
Bhaishri Info Solution
Sr. PHP Developer
Limdi Chowk, AT PO. Nar, Di. Anand
Nar, Gujarat
DOB: 12/24/1986


Chicago Development Team said...

Thanks for your nice comments. I am glad that this information has been of use to you. I can’t resist myself to leave a comment and trust me it’s hard to impress me.

PHP Development Chicago
.NET Development Chicago
Chicago Development Team

atul kumar sharma said...

how to create tem table in mysql with php and store data and fatch basically i'm using a textarea to some content before login after login the content should be display