Update Data Using Jquery Ajax PHP And Mysql

Поделиться
HTML-код
  • Опубликовано: 21 июл 2017
  • In this video you will learn to update data in mysql using jquery and ajax without refreshing page. you can download source code from the link below
    developer-zone.000webhostapp.c...
    Or download direct from here
    developer-zone.000webhostapp....

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

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

    This is seriously amazing! I've been working off of old tutorials that teach clunky old ways of updating. I'm so grateful for this. Thank you!

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

    Thank you so much, it really helps me! It's easy to understand and pretty clear tutorial

  • @Win-yo5gb
    @Win-yo5gb 6 лет назад

    thanks :) keep up the good work. This helped me a lot

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

    it's amazing, this helped me a lot. thanks :)

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

    thank you. This helped me a lot. keep up the good work.

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

    AMAZING! AMAZING! AMAZING! U HELP-ME SO MUCH! THANK U FRIEND!

  • @dharshinipalani7584
    @dharshinipalani7584 Год назад

    This video really helps me a lot.. Thank you so much sir

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

    this is the best ajax tutorial ever i seen

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

      code hai to send kardo

  • @AkashSharma-ke7fo
    @AkashSharma-ke7fo 6 лет назад +1

    Thankyou so much bro... I was stucked here from whole day tht how to show back the data to edit and u made it a piece of cake

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

    Thanks brother you are amazing ❤️❤️

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

    Legend! Thanks!

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

    Very cool, thanks a lot!

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

    muito obrigado, conteúdo excelente!

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

    it's worked .thanks brooooooo

  • @ayeshatabassum7572
    @ayeshatabassum7572 7 лет назад +3

    I try your tutorial but values not display in the form fields when click on update button.just blink fields of form display. I do not know where the problem?

  • @vagnercruz2084
    @vagnercruz2084 Год назад

    thanks for your help!

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

    Good job !

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

    thank you for sharing!

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

    thanks bro, have a nice day

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

    thank you so much!

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

    Awesome tutorial! I know its a old post, but can you share the files in another link? its not working anymore.

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

    Friend, thanks for these videos that are very good, a query please, I am new to this programming class and everything goes well however between the boxes that my form has I have a select that is related to another table that is in my base data and I do not know how to recover or show the data of that select.
    I explain myself better I have two tables:
    User with the fields: id, nombre, apellido, país_id(foreign key)
    Pais with the fields: id, nombre
    The problem is that I do not know how to display the name of the country that has a user in the user's edit window.
    Thanks for the help

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

    good job brother

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

    Amazing Sir you have solved my Update problem
    But Sir can you do this for Deleting Same data in delete modal ?

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

    THANK YOU

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

    Show, perfect

  • @MaybeBL1TZ
    @MaybeBL1TZ 4 года назад +4

    please can you share the source code again ? because website is down

  • @silvestrest5111
    @silvestrest5111 Год назад

    Thank you, for help me

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

    i have an issue:( ;( i have a select box in my form and I have an add button I have applied append function on it to create multiple select box, in select box I have populate the item codes from table, I have applied ajax on it, when we change the value of select box it would shown the corresponding data in an input fields but its only working on first row:( ;(

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

    the val() not giving me any value. For example i do a console.log(email) and its empty

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

    Excellent tutorial!! Is there a way to use a textarea for one of the fields (for example Email) that would allow line breaks, instead of using Type="text"? Thank you!!

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

      I just figured out how to do the textarea. My mistake was that I forgot to add the amount of rows. thank you!!

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

      LMAO

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

    The update button not working, can't we use save id given in update ?

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

    Hey, I am doing this on a Wordpress page and when I click Update nothing happens and my connection.php gives me back a 404 error. That is the only problem I have, can you help me out?

  • @amnesia4439
    @amnesia4439 3 года назад +1

    this tutorial is better than others even in 2021.......
    stil i get source code in 2021 ?

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

    gracias

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

    where can we get the source code?

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

    why did you use email as isset ?? please anyone explain.

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

    The Website/Download ist not exiting anymore :/

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

    the link is down, can you update it, please

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

    Brilliant demo, is there a download link that works for the source code?

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

    Would this work if you were displaying multiple tables on the same page? Like multiple editable tables?

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

      Yes this will work for multiple table. If the fields are different then you will have to add different modal with different classes

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

      Good

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

    can you please help me to update details using ajax in jsp and database

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

    @Developer Zone
    Please share Source Code. above mentioned link not working. Thanks

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

    seria genial que lo hagas con un campo de imagen

  • @Bassu_Bhaai
    @Bassu_Bhaai 7 месяцев назад

    When i refresh the page values does not updated

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

    How to Select Id Like MALE OR FEMALE ? its not woring. Help Me Please

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

    i tryed but it's not work .when i click the model update btn ajax url worked but data not update

  • @dharshinipalani7584
    @dharshinipalani7584 Год назад

    Bro the source code is not available on your website.. Please try to make the source code available in your website

  • @1976MIKEB
    @1976MIKEB 5 лет назад

    On PHP isset method, where does 'email' come from? Around 10min 30sec mark

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

      it comes from ajax along with other information like first name and last name .
      when click on update button in modal we pass that information through ajax .
      please watch from 6:50 where we set variables in jquery. and open modal to update data.

    • @1976MIKEB
      @1976MIKEB 5 лет назад

      @@DeveloperZone001 Thanks. I was able to figure it out after going back a few times. Your video has helped me out so much. I am playing around with my first PHP app and was trying to use EDIT in a bootstrap modal and was stuck for 3 or 4 days. Your video helped me get unstuck. Thank you

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

      @@1976MIKEB so where does the email come from?

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

    Hi Developer. Very nice and clean! Only that the source code link does not work. Thanks.

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

      Hi. the download link is working fine . if you are having any problem downloading the source code then leave your email address in comment . i will send you the source code .

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

    Mine is unidentified sir when i click update alert($(this).data('ID')); i use this jquery method

  • @karthi9750
    @karthi9750 Год назад

    can we update without using id but with any other column value

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

    hello , before i want to thank you for your work and effort , but i have probleme with update , edit working only in page is not work in data base so if possible to give me solution with my probleme
    thank u.

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

      Looks like your ajax is not working. Can you check your ajax code and server url given in ajax to update data

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

      url and code ajax is work , but Still not working whene i edit in data base

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

      @@aymenhamzaoui1076 then check your php code. Is it receiving data from ajax also is your query is OK. Update code is different from insert.

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

      finaly i find error , you wrong in place ajax you use method but in reality we can use type not method in ajax
      type : 'POST', not , method = 'POST'
      all my respect for you thank u
      Toutes mes respect pour vous merci

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

      I have the same problem, now i try to implement your solution

  • @OaknessOfficial
    @OaknessOfficial 3 года назад +1

    download link failed

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

    How can i put validation of data in this?

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

      You can validate data when we click on save button and get data from input fields.
      Just before ajax you can apply conditions on data to check if its valid or not

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

    save button dont work

  • @eraytezcan8160
    @eraytezcan8160 Год назад

    Hey the source Code is deleted

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

    my modal are opening but why there is no value? i copy your code exactly the same

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

      looks like you are not setting the vlue correctly .
      check the input id
      and then in jquery check the selector .
      $('#input-id').val();

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

      @@DeveloperZone001 it works but the problem again is in data unexpected token : thanks bro.

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

    Could not get the code.

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

    thank you! ps the source code link is not working

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

    Can you tell me what does a '+' sign does in $('#' +id).children (td[data-target]).text();

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

      + sign concatinate the id with string . in table each tr has id. so when we click on update link we get the id and then get the specific row with id by using $('#'+id).children

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

      @@DeveloperZone001 thank you 👍

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

    Please add for registration

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

    how to show the data if i replace the text input, into select option?? PM ASAP :)

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

      same as input field . like if you have select input having id "dropdown" then you can simply select value by $('#dropdown').val('your value');

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

      I have new a problem now lol, if click the update button it won't save in the DB but it display on page and when hit refresh it will go back to previous value

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

      ChicoChoco looks like value is not being updated. Check if your ajac is working fine.

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

      I need mentor haha? where can i connect with you? :)

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

      i used this again but it didn't display the value,
      in select option tag

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

    I made the 100th comment in this comment section. I'm so honored..☺️

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

    why if isset($_POST['email']) sir?

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

      To check form submission.

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

      ​@@DeveloperZone001 its working when button update is click, but on the database is not working. not updating the data, just on the table only.

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

      @@DeveloperZone001
      I have the same problem, what is the solution please?

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

      @@ayaalturk3166 you may be getting values with wrong parameters. use this code to print form data in php and check if you are getting values.
      print_r($_POST);
      die

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

    Please can you send me the source code?

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

      download source code from google drive
      download link is
      drive.google.com/open?id=0B5XEqtJZAVgLQXZoT0hGLWJYQWc

    • @nixonp.arrese
      @nixonp.arrese 3 года назад +2

      @@DeveloperZone001 Hi, it's not work, could you send me the source code please?

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

    Hi sir can you share the code on my email

  • @uttarottar
    @uttarottar Месяц назад

    Secource code Plz

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

    Hi sir i cannot download the source code anymore can you send me the source code thru email? Thank you very much