Это видео недоступно.
Сожалеем об этом.

Insert Data Into MySQL Database using jQuery + AJAX + PHP

Поделиться
HTML-код
  • Опубликовано: 12 авг 2024
  • technotip.com/2208/insert-data...
    Insert Data Into Database Without Refreshing Webpage..
    Video tutorial illustrates insertion of data into MySQL database using jQuery and PHP, using AJAX method i.e., $.post() method
    jQuery Video Tutorial List:
    technotip.com/2514/jquery-tuto...

Комментарии • 256

  • @kennethcarlgalve
    @kennethcarlgalve 5 лет назад +8

    The last time I watched this video is when I was still doing my thesis 4th year college of BSIT here in the Philippines. That was 2014, I graduated in March 2015. Wow, I'm feeling all the struggles I got back then while watching this video again. Thank you, Satish :)

    • @technotipDOTorg
      @technotipDOTorg  4 года назад +2

      Feeling so happy for your progress bro. Praying for more successful years to you ..

  • @kraegandragon
    @kraegandragon 11 лет назад

    Excellent video. I'm self-taught in PHP, Javascript, HTML5, Coldfusion and CSS. Now I'm tackling AJAX. Until this video, I did not fully understand the simplicity. Straight to the point and thank you for not spending wasted time on theory. Perfect. One thing that would make it better for me is to provide a place to download the code for copy and paste reasons.

  • @happyebb
    @happyebb 2 года назад +1

    You break this down so well! Thank you! I will be checking more of your videos!

  • @Maths4Everyone
    @Maths4Everyone 4 года назад +1

    Even though this is quite an old video, it is still valid and is crystal clear and easy to follow. Thank you

    • @technotipDOTorg
      @technotipDOTorg  4 года назад

      Thanks a lot for your good words Sir ..means a lot to me.

  • @backtothetrace
    @backtothetrace 7 лет назад +2

    This video is very good :) , a strong hug from Brazil...

  • @moussmerouan
    @moussmerouan 4 года назад +1

    Thank you for this very good presentation. Followed your steps and it all went smooth. Big thumbs up !

  • @neilbarker7577
    @neilbarker7577 10 лет назад +1

    Superb. It's answered some questions I had regarding the backend website I want to build.

  • @barajasfab
    @barajasfab 9 лет назад

    Awesome video Satish. Clear and to the point.

  • @technotipDOTorg
    @technotipDOTorg  11 лет назад +1

    It's a JavaScript library you can download from jQuery.com website.
    Please follow the tutorials in its order and you'll not be confused.
    For the list of tutorial order, please visit the link present in the description section of above video or visit our site and browse through jQuery category.
    Hope that helps ..

  • @technotipDOTorg
    @technotipDOTorg  11 лет назад

    There maybe many ways of doing this ..but what I've done with the video above perfectly works and there is no redundant code in it. And the logic is optimized to work in minimum time.

  • @kumaramresh7905
    @kumaramresh7905 4 года назад

    Nice tutorial ...post method of Ajax is really great

  • @rakhisingh7122
    @rakhisingh7122 6 лет назад +1

    Thank u for this video ..........your way is very easy to understand ............

    • @rakhisingh7122
      @rakhisingh7122 6 лет назад

      But the same time .......I want this with validation like email , phone number and name types(only character, only numbers n all) validation .........needed ........

  • @sivaanand2123
    @sivaanand2123 6 лет назад +1

    your way is very easy to understand ............

  • @matthewmcfarland3838
    @matthewmcfarland3838 6 лет назад

    nice video. It took a little while to get going, but really nice demonstration. Thanks for sharing. Matt, California.

  • @katsuneshinsengumi8727
    @katsuneshinsengumi8727 10 лет назад

    You make the world easier to live,...

  • @optical_ideas
    @optical_ideas 6 лет назад

    thanks man, this helped a lot.
    hint for today (january 2018): output complains about: mysql_query is deprecated.
    I made some changes and it worked for me.
    the connection to db:
    $conn = new mysqli('localhost', 'root', 'your_pw', 'your_database');
    and the insert query:
    $conn->query("INSERT INTO table_name VALUES('whatever', 'values', 'you', 'got')");

  • @andamanel1763
    @andamanel1763 11 лет назад

    never mind, I don't know what happened, but it's working correctly now. thanks

  • @FernandaEstradamarketing
    @FernandaEstradamarketing 7 лет назад

    Thank you very much Satish. Excelent Tutorial

  • @manualvarado2212
    @manualvarado2212 7 лет назад

    Thank you so much! This helped me a lot to understand .get/.post and .ajax.

  • @sabidli1
    @sabidli1 11 лет назад

    I like your video. keep on the good work

  • @Paul-px6sy
    @Paul-px6sy 9 лет назад +1

    Very helpful, thanks Satish.

  • @dancanua7926
    @dancanua7926 8 лет назад

    And I am also applied it in my modal! You are my life saver! hahaha cheers man! :D

  • @C4ll1bur
    @C4ll1bur 5 лет назад +1

    This was very helpful! Thanks a lot!

  • @joekennedy9920
    @joekennedy9920 8 лет назад +1

    he does this really quickly, but you can see there isn’t much html - he’s just utilizing an html webpage that references a couple of PHP files and a js file. he writes to the db through what looks like he’s preventing sql injection methods but it’s all so compact. i think i’m gonna try to set something up like this. I’m be very curious to understand if there are security protocols that are missing from this. i mean it’s missing the SSL which would be necessary for our application, but i’m still not clear on how all of that ties together.

  • @sandhyavishwakarma6909
    @sandhyavishwakarma6909 10 лет назад +6

    sir Above video is very simple to understand.m in new php and will you please upload the video for simple carrier form including captcha and basic detail of the user.
    Thnx

    • @technotipDOTorg
      @technotipDOTorg  10 лет назад +1

      Sandhya Vishwakarma I've this video tutorial published on my blog Technotip.com I've done it using Node.js and MongoDB. If you're still in the initial stages of learning php, then I would recommend you to shift to Node.js MongoDB

  • @berradamido4206
    @berradamido4206 7 лет назад

    thks you bro for this video is simple , undestandeble and I invite you to come in morroco

  • @salmankhan-ey7we
    @salmankhan-ey7we 4 года назад

    Very helpful video, thanks man... 🙏

  • @Esfar280
    @Esfar280 5 лет назад

    Panie Hindus, jesteś piękny i dziękuje ślicznie.

  • @maheshtharu705
    @maheshtharu705 9 лет назад

    It's all amazing tutorial I like very much thankss alot.

  • @amoowale1004
    @amoowale1004 5 лет назад +1

    Thank you Satish

  • @Gapbrick
    @Gapbrick 11 лет назад

    Make sure, that jQuery is installed correctly. Else, read the code again and tell yourself, what every function does. If there's something wrong, you'll get that with this method (that often helps me)

  • @damirzivkusic9236
    @damirzivkusic9236 10 лет назад +2

    man you'r my legend :)

  • @sharmasudhirdutt
    @sharmasudhirdutt 10 лет назад

    this is excellent video

  • @jayakk_guitar
    @jayakk_guitar 11 лет назад

    I am working on a small example where I use reservation system..Basically user picks a date and time and submits the form..The picked slot turns red onclick but the page refreshes after I submit the form and the slot goes back to green..I figured out that I need to use ajax calls to prevent a page refresh..Every time I log into the page the booked slots should be red.I am using jquery, php, mysql db..I am new to ajax and hoping to get some help from you.A video tutorial would be great. thanks :)

  • @jamesmccann8127
    @jamesmccann8127 10 лет назад

    Brilliant, just what I needed!

  • @shivashanker4488
    @shivashanker4488 5 лет назад

    Your teaching skills are very good can you make videos on java platform.

  • @bachirelamine1220
    @bachirelamine1220 8 лет назад

    thanks your brother from Algeria.......

  • @stephenung4736
    @stephenung4736 11 лет назад

    Thanks for the tut, can you please show us how to multiple rows insert into database table? E.g. Row1 (id, name, age, job title, wage, date_joined) Row2 or Row3 with different data and ID is auto increment? With one submit button?

  • @elmarco18
    @elmarco18 11 лет назад

    Everything works great, however if I include an id with Auto Increment as a third column say, which is extremely important, it does not work. How to you include id without inserting an actual id in the database

  • @Sora4277
    @Sora4277 11 лет назад

    do you know how to insert data inside input forms in html on "website" not in code, and when inserted it remains there... : / i can't find it anywhere

  •  8 лет назад

    Thank you for useful knowledge

  • @decongh
    @decongh 11 лет назад

    nice vedio, i will like to know how to validate the fields before inserting data, thanks

  • @sahilvig22
    @sahilvig22 6 лет назад +3

    Thank you so much brother!

    • @sahilvig22
      @sahilvig22 6 лет назад

      tictac Guys yes man. Perfectly working.

    • @sahilvig22
      @sahilvig22 6 лет назад

      tictac Guys all i can say is to try again. Since it actually woked for me the exact same way. It's difficult to find errors so just try again with a new file

  • @AsepRidwan
    @AsepRidwan 10 лет назад +1

    What a nice video, man.

  • @jayakk_guitar
    @jayakk_guitar 11 лет назад

    Instead of name and age I want to send html table td elements using ajax call...I hope you get my point..Thanks for reply

  • @sabrinao.1251
    @sabrinao.1251 8 лет назад

    You rock Satish !

  • @sivaanand2123
    @sivaanand2123 6 лет назад

    Thank you sir ... . . . .

  • @palpraveen
    @palpraveen 10 лет назад

    hi thanks ofr good video
    i need your help
    i have two dropdown and i want to change data of the second dropdown based on the values selected in first dropdown .
    (NOTE:- Values are retrived form the database and i want to use ajax and jquery )
    any suggestion ?

  • @foxywoxy0w068
    @foxywoxy0w068 3 года назад

    Out of curiosity is there a way to get the data from the text fields onto a database but instead of manually inputting the text, the text is automatically entered there via a dropdown option?
    Like lets say I'm doing an escaperoom business and the customer can use a dropdown to choose what room they like to book, when they choose a room then text boxes will fill up displaying the info for that room.
    I've used an ajax to do the functionality of filling the text boxes with that specific information and for calculating total price and what not yet for some reason, my code will not accept the input and won't insert the data onto a table, it literally considers the text boxes as empty despite otherwise. How would I go about it so that the program checks if there is anything inside the text boxes and gather the info from there to output as data in the dbtable?

  • @charliepotot8916
    @charliepotot8916 10 лет назад

    Hi! Satish you video is good. I just got some questions.could i use serialize() instead of serializeArray?

  • @patelsuresh22
    @patelsuresh22 10 лет назад

    superb tutorial satis. keep it up. please upload it with hindi langauge also, because i don't well know english. Thanks again.

  • @nasirahmadbromand4341
    @nasirahmadbromand4341 5 лет назад +1

    many thanks sir gggggg

  • @davlat51
    @davlat51 3 года назад

    Thank you very mach

  • @andamanel1763
    @andamanel1763 11 лет назад

    I am not getting the values of the text boxes inserted into the user table. I am getting the names of the variables. For example: instead of John, 30 inserted into the DB, I am getting $name, 0 inserted into the DB user table. How do I get the values, not the variables? My code in the userInfo.php is exactly like yours and I am getting the "successfully inserted" message. Thanks!

  • @saig4820
    @saig4820 10 лет назад

    very nice prasentation .

  • @mhiavalencia1200
    @mhiavalencia1200 8 лет назад

    Good tutorial! I hope this will work to my project! :)

  • @djablazman3986
    @djablazman3986 3 года назад

    Thank you for this video, now how to uplad text and an or more ?? Using this code

  • @bgsfabio
    @bgsfabio 10 лет назад

    valeu ajudou bastante!!! obrigado

  • @ankitsuthar1698
    @ankitsuthar1698 8 лет назад

    i am working on sending form data as a single JSON string in database and get it back that data in my html form.. so any idea...

  • @hardianto4230
    @hardianto4230 4 года назад +1

    omg. thank you..

  • @maxpowertothemax
    @maxpowertothemax 11 лет назад

    Hey got it all figured out and is working great. One more thing though- Is there a way to have the result message from php as an .alert? Rather than a div. Thanks man- You rock! Going to watch some more of your videos :)

  • @willc8532
    @willc8532 10 лет назад

    hey can you make a link on your lectures to show how to retrieve the data that is saved? I cant find your other link or find it in order

  • @maxpowertothemax
    @maxpowertothemax 11 лет назад

    This was a great video. You explained everything great. Only problem is my jquery dosent seem to call the .js page. PHP and form inputs work though. It just keeps loading the php file from form action. Been dealing with this all week. Its completely frustrating! Thanks for the tut though. It does help me out alot-

  • @penumak
    @penumak 11 лет назад

    hi dude you seems to be with lot of patience and helpful iam a school teacher there is software called Dredge school administrations system you can find it in sourceforg
    please help how to make it work i tried intslling wamp and all but didnt get it.
    iam a novice lol

  • @AliGyoMan
    @AliGyoMan 10 лет назад

    Awesome tut, thanks a lot :)

  • @RulliR
    @RulliR 4 года назад

    halo nice tutor but why I can not getting index of my value after I put return false line, and when I delete those line i will get my value but my page direct to my php file

  • @THDYoung
    @THDYoung 11 лет назад

    great tut.

  • @SuperLegende1
    @SuperLegende1 10 лет назад

    thank you so much

  • @maxpowertothemax
    @maxpowertothemax 11 лет назад

    Is there a way in jquery to put a condition to 'do nothing' if there is nothing entered in the feilds? or would we have to make that a php condition?

  • @viengvilay100
    @viengvilay100 11 лет назад

    Good, I understood when mute speakers,

  • @ashnashilmy1323
    @ashnashilmy1323 5 лет назад +1

    It works❤

  • @lofiscide
    @lofiscide 3 года назад

    I liked your channel
    Sir where you are from?

  • @parasrastogi3174
    @parasrastogi3174 5 лет назад

    i followed your guide except that you used external javascript file but i wrote the javascript code as internal javascript file between head tags... now i seem to get undefined index error on clicking the button
    [update the issue seems to be resolved .. just had to remove input from formname:input in js]
    also i am trying now to extract data from table in the same manner... the table gets extracted but is being shown on a new page. any suggestions ?

  • @ananthsview8034
    @ananthsview8034 10 лет назад

    If the PHP returns json encoded data how we can get data ...? can u give me a example ..?

  • @svsravichandra
    @svsravichandra 7 лет назад +1

    simple and understandable. TQ :)

  • @coxixx
    @coxixx 8 лет назад

    Hi it was awesome! just would you tell me how to add preloader to your code .

  •  10 лет назад

    great tut i would like to know how to use php vars like a logged in username session instead of a user input and also a php var for if a user is vieing a friends profile page so i would like to know how to send 2 vars to a parser without refresh it is for a poke application i am making can you do a tut on this please?

  • @jayakk_guitar
    @jayakk_guitar 11 лет назад

    I am using html table elements for picking slots..td elements..
    I don't know how to pass a table element in ajax request call

  • @kentuituvy2892
    @kentuituvy2892 8 лет назад

    i'm adding a new data into my database and it will show in my website but before my data show in my website i need to refresh it..what is the problem?? plz help..

  • @francoisbrand7464
    @francoisbrand7464 10 лет назад

    fantastic stuff - keep it coming!

  • @barez0
    @barez0 11 лет назад

    really great tutorial thanx,but i didn't find the next tutorial display inserted data ,pleas post to me it links.. :)

  • @batangnescafe
    @batangnescafe 11 лет назад

    uhmm.. i just want to ask something
    what are post folder and script folder for? im all new to this....

  • @JACNNN80
    @JACNNN80 10 лет назад

    Thanks for this tutorial, When we complete entering data can you tell me how can make Page Query for Data ? I mean how can make page search .
    Thanks

  • @anthonykdramanu9158
    @anthonykdramanu9158 2 года назад

    My php file is opening wihtin the same window as the html file but it does nto return to the HTML code

  • @raiyashasveesrivastav
    @raiyashasveesrivastav 7 лет назад

    Hi Satish Sir,
    I have created a dynamic table by using JQuery and HTML now I want to fetch the data from each row of dynamic table but the dynamic table is created all row with the same name so How to fetch the value in php file?

  • @illxs
    @illxs 10 лет назад

    great tutorial man!

  • @ashnashilmy1323
    @ashnashilmy1323 5 лет назад +1

    Put button to ,
    type=submit 👌
    Another has default submit
    .

  • @tadu9027
    @tadu9027 8 лет назад

    Nice tutorial!

  • @Techelp2011
    @Techelp2011 11 лет назад

    Thank you so much this video helped me so much thank you I subbed and liked xD

  • @LlJeom
    @LlJeom 11 лет назад

    thanks for the tutorial. but i have a problem when using the method. i can't echo out the values typed in the text field. can you help me?

  • @darmorir7
    @darmorir7 9 лет назад

    Muchas gracias!

  • @jordistoop3682
    @jordistoop3682 9 лет назад

    I don't unstand how to *.php file is started, doesn't your form require a action when pressing submit? How does your *.php script know when to start?

  • @magatjonathan1383
    @magatjonathan1383 6 лет назад

    Can i use this to make a chat system? I'm trying to make a chat without using interval to refresh a specific part of the page..

  • @randycramer7273
    @randycramer7273 9 лет назад

    Could you please remake this tutorial using mysqli or PDO? You are easy to follow along with and do a good job, but mysql is deprecated.

  • @lucaslucero18
    @lucaslucero18 11 лет назад

    When I press submit button, the form insert the values into my datebase, but my page goes to the php file and it doesn't stay in the index file without refreshing the full page, what's going wrong?

  • @hivs70
    @hivs70 11 лет назад

    can I use this with my bootstrap modal?
    coz I use bootstrap modal with my registration form
    pls reply thanks great tut very informative tutorial though!

  • @penumak
    @penumak 11 лет назад

    in sourceforge education section on page number five you can get it please help me

  • @RudiOnRails
    @RudiOnRails 9 лет назад

    Wow coming from MVC 5. Learning PHP is a slep.

    • @RudiOnRails
      @RudiOnRails 9 лет назад

      But great tutorial none the less.

  • @alg2990
    @alg2990 9 лет назад

    Very helpful Satish, thank you very much !

  • @Techelp2011
    @Techelp2011 11 лет назад

    Quick question which program would you recommend
    Codelobster or Dreamweaver