Get Response Data Back into JavaScript

Asked By 0 points N/A Posted on -
qa-featured

Hi,

I'm new in AJAX, I want to know how I can use AJAX data to get a data from MySQL database. with PhP? Any advice will be accepted. Thanks!

SHARE
Answered By 0 points N/A #108533

Get Response Data Back into JavaScript

qa-featured

How to fetching data from a MySQL database using JQuery AJAX and PHP. JQuery AJAX allows us to update a page's content without reloading the page it works by access a content file on the server here I have called the file client.php, the file is downloaded to your computer and the html is displayed by your browser, Client.php contains JavaScript which is also downloaded to your computer,the jquery JavaScript then executes and creates its own request to a script on the server that has access to the MySQL database. It does this using AJAX. This script in this example is PHP and is called api.php, api.php executes and gets the data from the mysql database and returns it via a json string to the listening client.php script, the client.php script receives this data and finally updates the html content on the page dynamically

Login/Register to Answer

Related Questions