Reputation: 963
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
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