开发者

Send MySQL Query w/o Form or Page Refresh

开发者 https://www.devze.com 2023-03-22 22:24 出处:网络
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 refre开发者_开发百科shing the page. You can use any JavaScript, PHP or jQuery.Write a PHP

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 refre开发者_开发百科shing the page. You can use any JavaScript, PHP or jQuery.


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');
0

精彩评论

暂无评论...
验证码 换一张
取 消