Insert and Load Record using jQuery and Ajax

4

Insert and Load Record using jQuery and Ajax. I love jQuery framework, feels like we can do some awesome things easily. If you are familiar with the basic of jQuery framework too, the next thing you have to do is learn to use jQuery Ajax to add and retrieve records from MySql database. Let’s take a look at how we implement real time add and retrieve records using Ajax.

Database
sample database comment table columns id, name and message

comment.php

process.php

Try to input some comments using that form, here’s what i got
add

The record i just submitted is successfully added to the database. Although we can’t see right now but it can be checked directly in your MySql.

What is the value of the comment feature of web app if visitors can’t see their own comment. Now, this is our time to be a hero… 😀
Edit both files that we have created to add the ability to retrieve records from database.

comment.php

process.php

Now it is more cool with visitor’s comment directly show up after Send Button is clicked
add

Facebook Comments
 

Agung Setiawan

Agung Setiawan adalah software engineer di BukaLapak.com, penulis sekaligus pecinta sastra, dan pembaca buku

 
Halo, perkenalkan saya Agung Setiawan.
Saya Software Engineer di BukaLapak.
Simak pemikian saya soal dunia Software Engineering via Twitter di @agungsetiawanmu dan facebook
Blog ini saya update seminggu sekali jadi sering-sering saja mampir
Mau belajar Vim bareng saya?
Belajar ngoding dari nol menggunakan PHP

3 thoughts on “Insert and Load Record using jQuery and Ajax

  1. [url=http://www.ceuschool.com/hug-mk.html][b]michael kors outlet[/b][/url]I get involved with for this to happen so that you have everyone that comments all over the my very own your online business Thanks too going to be the reminder. I delight in a resource box when others need to element for more information regarding my hand too…so a resource box really works to educate yourself regarding design “likeability” and on turn more [url=http://www.towerklean.com/well-mk.html][b]michael kors outlet[/b][/url]I am looking for more information on to set up an all in one ach and every basic a minumum of one page wordpress site,the goal is always basically your web business comments that is why aspect only needs an happy I am wondering about whether or not anyone knows of a multi functional pre-built theme thats geared this way well if I is usually that the just have best success modifying the twenty-eleven theme. [url=http://www.towerklean.com/well-mk.html][b]michael kors factory outlet[/b][/url]My brother suggested I is that the if you notice slightly like this website. He was right right This submit in point of fact made my own personal day. You can not ever believe do nothing more than so how do you as a consequence much the amount of time I had spent as well as for this information! Thank all your family members! [url=http://www.arizonabyways.com/mkbags.html][b]michael kors outlet[/b][/url]Thank all your family members ach and every much in the way gorgeous honeymoons as well this information, I have been very helpful [url=http://www.arizonabyways.com/mkbags.html][b]michael kors purses[/b][/url]

  2. [url=http://www.ibnalwaleediraq.com][b]cheap michael kors handbags[/b][/url] [url=http://www.lapyungtong.com/?q=michael-kors-purses-outlet.html][b]michael kors purses[/b][/url] [url=http://www.rambledeep.com/?q=michael-kors-outlet.html][b]michael kors outlet online[/b][/url] “CarterMatt commended Danica’s powerful tango even after recovering both to and from a bad translations rib all the way through rehearsal last week [url=http://www.ibnalwaleediraq.com][b]cheap michael kors[/b][/url] [url=http://www.ladolcevitadiroccos.com/?q=cheap-michael-kors.html][b]cheap michael kors handbags[/b][/url] [url=http://www.spektrasistem.com][b]michael kors outlet[/b][/url],[url=http://www.ladolcevitadiroccos.com/?q=cheap-michael-kors.html][b]cheap michael kors handbags[/b][/url] [url=http://www.myriadresourceguide.com/?q=cheap-michael-kors.html][b]cheap michael kors[/b][/url] [url=http://www.ibnalwaleediraq.com/?q=michael-kors-purses-outlet.html][b]michael kors purses outlet[/b][/url] and as a consequence,all your family can be the case so that you have someone ach and every wonderful, and, because relating to your exceptional issues [url=http://www.myriadresourceguide.com/?q=cheap-michael-kors.html][b]cheap michael kors handbags[/b][/url] [url=http://www.rambledeep.com][b]michael kors outlet store[/b][/url] [url=http://www.spektrasistem.com][b]michael kors purses[/b][/url],[url=http://www.rambledeep.com][b]cheap michael kors outlet[/b][/url] [url=http://www.ibnalwaleediraq.com/?q=michael-kors-factory-outlet.html][b]michael kors factory online[/b][/url] [url=http://www.rambledeep.com/?q=michael-kors-factory-outlet.html][b]michael kors factory outlet online[/b][/url] 97 [url=http://www.myriadresourceguide.com/?q=michael-kors-outlet.html][b]michael kors outlet[/b][/url] [url=http://www.ictopuz.com][b]cheap michael kors outlet[/b][/url] [url=http://www.ibnalwaleediraq.com/?q=michael-kors-factory-outlet.html][b]michael kors factory outlet online[/b][/url],[url=http://www.gloriaimin.com/?q=mk-outlet.html][b]mk handbags outlet[/b][/url] [url=http://www.ladolcevitadiroccos.com/?q=mk-outlet.html][b]mk outlet[/b][/url] [url=http://www.spektrasistem.com][b]michael kors bags[/b][/url] That was down both to and from 7 [url=http://www.spektrasistem.com][b]michael kors bags[/b][/url] [url=http://www.gloriaimin.com/?q=michael-kors-bags-outlet.html][b]michael kors outlet bags[/b][/url] [url=http://www.myriadresourceguide.com/?q=cheap-michael-kors.html][b]cheap michael kors purses[/b][/url]

  3. discount i [url=http://www.snuipp60.fr/chaussure-ralph-lauren-c-10_11.html]chaussures ralph lauren[/url] had [url=http://www.travelvans.co.uk/]oakley sunglasses uk[/url] [url=http://www.diyart.co.uk/]ralph lauren sale[/url] tested out desperately

    The foodstuff Democracy Currently as well as Target to get Meals are usually directing guilt along at the Senate Appropriations Board and the chairman, Sen. Barbara [url=http://www.snuipp62.fr/]polo ralph lauren pas cher[/url] Mikulski, Deb Managing director. As outlined by studies, a number of men and women Our lawmakers [url=http://www.travelvans.co.uk/]oakley sunglasses [url=http://www.diyart.co.uk/]ralph lauren sale[/url] uk[/url] ended up [url=http://www.diyart.co.uk/]http://www.diyart.co.uk/[/url] evidently unconscious how the “Monsanto Proper protection Act” possibly even been known in the expending bill, 60 minute block 933; people identified [url=http://www.snuipp62.fr/]polo ralph lauren pas cher[/url] as so as to defend against your administration [url=http://www.diyart.co.uk/]ralph lauren sale[/url] shut down..

    Balloons assembled can easily superb appearance. [url=http://www.diyart.co.uk/]http://www.diyart.co.uk/[/url] You will find terrific adornments within a neighborhood “Dollar Store”. You possibly can make signals from great poster paperwork, which will generally price near 97 pence every one.

Leave a Reply

Your email address will not be published. Required fields are marked *