Ajax JQuery / PHP – Refresh Table When Inserting Row Into a MySQL Database

Image frame
Ajax JQuery / PHP – Refresh Table When Inserting Row Into a MySQL Database
Maruf
Mar 9th, 2010
Maruf scribbled this post.

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.

Refresh Table When Inserting Row Into a MySQL Database

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 :)


Filed away: Ajax

comments

Image frame
1

Wow wonderful, thank you :)

sekay
May 29th, 2010
Image frame
2

thanks man! im looking to this one..

teachsanjay
Jul 16th, 2010
Image frame
3

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

Amal
Jul 31st, 2010
Image frame
4

I’ve been looking for this. Glad I found your page :)

Catzie
Aug 10th, 2010

feel free to leave a scribble

Name:
Email:
gravatar
Want an image next to your comments?
visit gravatar.com
Message:
Get a free quote