How to select data and display in a div using php jquery ajax

preview_player
Показать описание
Hello everyone in this tutorial I will show you how to
select data from mysql database using ajax and display
in a div

Steps--
1) Create a php/html page

2) Add jquery library in head section.

3) Create a javascript function and write your ajax code
inside this function.

4) Then create a button and call the javascript function
on button click event.

5) Create a div after creating button.

6) Create another php page and write php codes and execute
your query.

7) Send any data to newly created php page if you need
via ajax method

8) Now show data in a table structure in newly created
php page.

9) Now show table structured data in side div using jquery.

Thank you for watching this video.
Like, Share and Subscribe to Codeeko :)
Рекомендации по теме
Комментарии
Автор

what if i want to update the value of age variable everytime user clicks the button (could i use ++age)and is there any problem with the scope of variable because i want to retain the value of age variable after button click

rohitsaini
Автор

Hi
Thanks for the tutorial
Can you help me with this?

How to create divs automatically and populate them with records from your database

therc