Update Data Using Jquery Ajax PHP And Mysql

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 116

  • @whshockey1020
    @whshockey1020 6 років тому

    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!

  • @dharshinipalani7584
    @dharshinipalani7584 Рік тому

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

  • @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

  • @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?

  • @moynulislam739
    @moynulislam739 4 роки тому

    this is the best ajax tutorial ever i seen

    • @webtry2780
      @webtry2780 4 роки тому

      code hai to send kardo

  • @MaybeBL1TZ
    @MaybeBL1TZ 4 роки тому +4

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

  • @amnesia4439
    @amnesia4439 3 роки тому +1

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

  • @tachibanamei
    @tachibanamei 4 роки тому

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

  • @fabiobasemarketing
    @fabiobasemarketing 4 роки тому +1

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

  • @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:( ;(

  • @fahadmalik4869
    @fahadmalik4869 4 роки тому

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

  • @CryptoThink
    @CryptoThink 2 роки тому

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

  • @russeltchoga3391
    @russeltchoga3391 2 роки тому +1

    Good job !

  • @mketr02
    @mketr02 3 роки тому

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

  • @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 3 роки тому

      LMAO

  • @alas5k362
    @alas5k362 4 роки тому

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

  • @vagnercruz2084
    @vagnercruz2084 2 роки тому

    thanks for your help!

  • @nikhilsingh8544
    @nikhilsingh8544 4 роки тому

    Thanks brother you are amazing ❤️❤️

  • @legonz5047
    @legonz5047 4 роки тому +1

    The Website/Download ist not exiting anymore :/

  • @jasinalishanan687
    @jasinalishanan687 5 років тому

    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?

  • @rodrigoramos6479
    @rodrigoramos6479 7 років тому +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

  • @akilmehar9619
    @akilmehar9619 2 роки тому

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

  • @riabahrani7921
    @riabahrani7921 5 років тому

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

  • @smurffronda2951
    @smurffronda2951 3 роки тому

    thanks bro, have a nice day

  • @annujtiwarii1356
    @annujtiwarii1356 2 роки тому

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

  • @silvestrest5111
    @silvestrest5111 2 роки тому

    Thank you, for help me

  • @helarduran8575
    @helarduran8575 4 роки тому +1

    the link is down, can you update it, please

  • @allmight31
    @allmight31 5 років тому

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

    • @DeveloperZone001
      @DeveloperZone001  5 років тому

      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 3 роки тому

      Good

  • @antham1616
    @antham1616 3 роки тому

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

  • @alfie9650
    @alfie9650 3 роки тому

    thank you so much!

  • @sahanvindana8089
    @sahanvindana8089 5 років тому

    it's worked .thanks brooooooo

  • @dharshinipalani7584
    @dharshinipalani7584 Рік тому

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

  • @garyjames6168
    @garyjames6168 6 років тому

    Legend! Thanks!

  • @xyJleTaM
    @xyJleTaM 4 роки тому

    Very cool, thanks a lot!

  • @asifrock5443
    @asifrock5443 4 роки тому

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

  • @sandeepacharya229
    @sandeepacharya229 5 років тому

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

  • @karthi9750
    @karthi9750 2 роки тому

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

  • @biniesh7097
    @biniesh7097 4 роки тому

    thank you for sharing!

  • @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 4 роки тому

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

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

  • @ayeshatabassum7572
    @ayeshatabassum7572 7 років тому +1

    where can we get the source code?

  • @albertoymas5190
    @albertoymas5190 3 роки тому

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

  • @aymenhamzaoui1076
    @aymenhamzaoui1076 6 років тому +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  6 років тому

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

    • @aymenhamzaoui1076
      @aymenhamzaoui1076 6 років тому

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

    • @DeveloperZone001
      @DeveloperZone001  6 років тому

      @@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 6 років тому

      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 6 років тому

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

  • @indiogigante
    @indiogigante 4 роки тому

    muito obrigado, conteúdo excelente!

  • @OaknessOfficial
    @OaknessOfficial 3 роки тому +1

    download link failed

  • @anooskhokhar2433
    @anooskhokhar2433 6 років тому

    good job brother

  • @sahanvindana8089
    @sahanvindana8089 5 років тому

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

  • @atsilahanuar6475
    @atsilahanuar6475 5 років тому

    THANK YOU

  • @ISOnepal
    @ISOnepal 4 роки тому

    Could not get the code.

  • @eraytezcan8160
    @eraytezcan8160 Рік тому

    Hey the source Code is deleted

  • @dualipyah2221
    @dualipyah2221 3 роки тому

    thank you! ps the source code link is not working

  • @zainebalthahaby3230
    @zainebalthahaby3230 5 років тому

    save button dont work

  • @afonsojunior8864
    @afonsojunior8864 4 роки тому

    Show, perfect

  • @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.

  • @theelmirco
    @theelmirco 6 років тому

    gracias

  • @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

  • @hafizazim3766
    @hafizazim3766 5 років тому

    Please add for registration

  • @basandorrynjah2126
    @basandorrynjah2126 6 років тому +1

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

    • @DeveloperZone001
      @DeveloperZone001  6 років тому +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 6 років тому

      @@DeveloperZone001 thank you 👍

  • @Lightning90210
    @Lightning90210 7 років тому +1

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

    • @DeveloperZone001
      @DeveloperZone001  7 років тому

      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 .

  • @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 6 років тому

      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  6 років тому

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

    • @SPiiiiCE
      @SPiiiiCE 6 років тому

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

    • @SPiiiiCE
      @SPiiiiCE 6 років тому

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

  • @desarrollolucas
    @desarrollolucas 4 роки тому

    seria genial que lo hagas con un campo de imagen

  • @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 3 роки тому

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

    • @DeveloperZone001
      @DeveloperZone001  3 роки тому +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

  • @uttarottar
    @uttarottar 5 місяців тому

    Secource code Plz

  • @antoniofuller2331
    @antoniofuller2331 3 роки тому

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

  • @danushparise1757
    @danushparise1757 3 роки тому

    Hi sir can you share the code on my email

  • @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?

  • @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

  • @Bassu_Bhaai
    @Bassu_Bhaai 11 місяців тому

    When i refresh the page values does not updated