How to get(fetch) data without page refresh

Опубликовано: 11 Январь 2019
на канале: Chuti Bro
268
6

In this video I will show you how you can get/fetch data from MySQL database without reloading or refreshing page using AJAX. First I used simple PHP code (viewdata.php) to fetch all the results from the database then I used ajax to load the page (viewdata.php) after specific period of time so I used 1 seconds of time that after every 1 seconds the main page will fetch data from viewdata.php so it simply fetched data from database without reloading the page. I used viewdata.php and index.php files in the video just for the sake of this video but your project may have different directory structure but this video demonstration will guide you much about getting data from MySQL database without reloading the page using AJAX.