添加行的MySQL数据库和显示的div jQuery的无刷新页面页面、数据库、MySQL、jQuery

2023-09-10 19:01:30 作者:葬禮已取消

我使用一些PHP脚本从一个复杂的形式,以MySQL数据库添加一些数据,然后展示这一切在一些HTML表格。一切都工作得很好,但我想升级我的脚本使用jQuery和(我想)AJAX。

I am using some PHP script to add some data from a complex form to MySQL db and then showing it all in some HTML table. Everything works just fine, but I would like to 'upgrade' my script with jQuery and (I suppose) AJAX.

当用户提交的数据,该行我想要做的就是(或< D​​IV> )显示在HTML表格,而无需刷新页面。表和表都是同一个页面上,当然...

What I would like to do is when user submits data, the row (or <div>) shows up in the HTML table without refreshing a page. Form and table are on same page, of course...

一些准则将是非常有用的,因为我不知道我应该甚至使用AJAX或者我需要别的东西。对于一些教程链接也将是巨大的:)

Some guidelines would be really helpful because I'm not sure should I even use AJAX or something else for my needs. Links for some tutorials will be also great :)

非常感谢您的帮助!

推荐答案

我用的本教程实行评论系统对我的项目之一。它使用Ajax和作品真的很好。我认为,这是你所需要的。

I had used this tutorial to implement a comment system on one of my projects. It uses ajax and works really well. I believe that this is what you need.

 
精彩推荐
图片推荐