-3

i need to make a page that have a button , when i press that button , a javascript function call a php function who run a mysql_query and print on page the results! How can i run php function from javascript .

1 Answers1

0

You have http://api.jquery.com/jquery.ajax/ :

    $.ajax({
       url : 'script.php'
    });
Clément Andraud
  • 9,103
  • 25
  • 80
  • 158