简体   繁体   English

使用 PHP 和 Ajax 函数精炼 MYSQL 数据库中的数据

[英]Refine Data From MYSQL database with PHP and Ajax function

I have a php page in which at left sidebar i have a query form and at right sidebar i have space to display result when query form is submitted without refreshing the whole page, Problem is that the whole page get refreshed every time i have tried many ajax function but no one could help me.我有一个 php 页面,其中在左侧边栏我有一个查询表单,在右侧边栏我有空间来显示结果,当提交查询表单而不刷新整个页面时,问题是每次我尝试了很多次时整个页面都会刷新ajax 功能,但没有人可以帮助我。 I want to display like this- http://www.makaan.com/jaipur-property/residential-property-for-sale-in-jaipur/search-properties In this Page At LeftSidebar when i click any checkbox it display result without refresh whole page.我想像这样显示 - http://www.makaan.com/jaipur-property/residential-property-for-sale-in-jaipur/search-properties在此页面的 LeftSidebar 当我单击任何复选框时,它显示的结果没有刷新整个页面。

Please Help Me, Any help will be appreciated.请帮助我,任何帮助将不胜感激。

you should catch a submit event and tell him, in case you make in with jQuery, something like你应该捕捉一个提交事件并告诉他,如果你使用 jQuery,比如

$(form).submit(event){
    event.preventDefault();
    ...
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM