Ajax JQuery / PHP – Refresh Table When Inserting Row Into a MySQL Database
I’ve had a few people asking me how to refresh a table (not the entire page) when inserting rows into a MySQL database, so I thought I’d quickly put together a small demo.
Here’s a basic demo of what I’m talking about. If you populate the form and press “Submit” you’ll notice the table updates without the entire page refreshing.

Demo
Ajax JQuery / PHP – Refresh Table Demo.
I’ve put a limit of 20 entries on the demo version, to save myself from being abused!!
Download
Download Ajax JQuery / PHP – Refresh Table
Please note, I have merely provided a guide. You are strongly advised to implement your own server and client side error checking.
I hope you find the code useful



brightcherry.co.uk
Wow wonderful, thank you
thanks man! im looking to this one..
almost what i was looking for!! is it possible to refresh the tables automatically if a condition is met in one of the columns? eg. delete row when fifth column=some value
I’ve been looking for this. Glad I found your page
cool! just what am looking for
hey man this example not working wit local file jquery-1.4.2.min.js or derivates.
just with the link you put in te script
thanks man!
thanks bro..
cool, this is what i looking for …
thank you very much . . .
Thanks for this code. I was actually looking for this.
Simple and nice guide! thanks a lot fellow!
Thanks a lot, this is exactly what i needed!!
Wow, this worked perfectly the first time. Your explanation was simple and to the point. THANK YOU, THANK YOU!
Thanks a lot. This was so helpful you have no idea. I spent hours looking for a way to speed up my system. You’re the man.
Thanks a lot but I have the same question as Amal: How can we “forget” the click on the submit button if we only use checkboxes for example?