To make it work you will need to create a database in phpMyAdmin.
In this post I’m going to show You, how to use AJAX to fetch data from an external API asyncronously behind the scenes and put it into our website.
We pull the data from https://breakingbadapi.com
Request single JSON data
Request array JSON data
With Ajax You can receive data asynchronously without page reload.
Method 1 – onload function
Method 2 – readystate function