How to Get JSON Data from PHP Script using jQuery Ajax


post-get-json-data-from-php-script-jquery-ajax-mysql-codexworld

The jQuery ajax is very useful when you want to post or get data from PHP script without page refresh. Generally, you return the string to Ajax call for updating a part of the web page. But sometimes requires getting the object or array data from PHP file for showing values in the different area. Using $.ajax() method in jQuery you can get JSON data from a file and set in the HTML element.


Ajax File Upload using jQuery and PHP


ajax-file-upload-using-jquery-php-codexworld

In this tutorial, we'll build a simple Ajax file upload script with jQuery and PHP. You will find many jQuery plugins for upload files or images without page refresh. But if you want to learn the Ajax file upload process and make your own Ajax file upload script, this tutorial will help you a lot. Here we'll show how you can upload file to the server without page refresh using jQuery, Ajax, and PHP.