0

I am trying to display data from a database using jquery/php,I want to display all the data from the database, when the page is loaded is it possible to do this using jquery onload to call a php function. than I am using jquery post to search through the data .

Ajeet Kumar
  • 805
  • 1
  • 7
  • 26
percy3872
  • 91
  • 1
  • 8
  • 2
    Possible duplicate of [calling php function from jquery?](http://stackoverflow.com/questions/5578899/calling-php-function-from-jquery) – jlocker Oct 18 '15 at 12:07

2 Answers2

0

I think that you are looking for system named AJAX. Link for more info: http://www.w3schools.com/ajax/ and http://www.w3schools.com/jquery/ajax_ajax.asp

fico7489
  • 7,931
  • 7
  • 55
  • 89
0

Yes its possible. You can use jquery-ajax on load to call the PHP file having that function and then display the returned data in HTML. Here's a tutorial:

Learning jQuery-Ajax-PHP

Ashish Choudhary
  • 2,004
  • 1
  • 18
  • 26