Aurange
Aurange

Reputation: 963

Send MySQL Query w/o Form or Page Refresh

I want to send a MySQL query without a form as it won't be taking user input. I want this to be done without refreshing the page. You can use any JavaScript, PHP or jQuery.

Upvotes: 0

Views: 569

Answers (1)

Dan Grossman
Dan Grossman

Reputation: 52382

Write a PHP script which runs the query. Make an AJAX request to this URL with JavaScript to run it.

jQuery example:

$.get('runquery.php');

Upvotes: 3

Related Questions