PHP - Update Records In MYSQL Database Using PHP

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

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

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

    great friend, success always

  • @yossihorev3250
    @yossihorev3250 6 лет назад +5

    Thank you so much ! I needed this tutorial desperately !

  • @patrickbroaden9820
    @patrickbroaden9820 3 года назад +2

    Great video...💪🏾

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

    Thanks for nice tutorial for us .I want to say Really nice tutorial .I have got it Today.Now I am felling so well.That's why i am commenting This site.Due to It helped a lot of.At last I Will wait next tutorial

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

    Excellent Tutorial. Keep it up! More php tutorials coming.

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

    Thank you, i learnd how to make edit and delete by your videos. Thank you so much. :)

  • @GenghisD0ng
    @GenghisD0ng 6 лет назад +2

    Thank you! I had to search so long for this

  • @KusakaStudio
    @KusakaStudio 4 года назад +3

    Thanks for your tutorial, it was really helpful for me :).

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

    Excellent explanation. Short and clear. I was very useful for my. Thank you!

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

    Very helpful video. Thanks a lot.

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

    Thankyou sooooo much you have helped me a lot , BARAKA ALLAHO FIKA

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

    Excellent explanation. Short and clear. I was very useful for my. i very use this video and one agen Thank you! and sir please share link in delete in database video?

  • @shreyas_katagi
    @shreyas_katagi 5 лет назад +2

    Good job.👌
    Next time attach the files in the description so that it can be downloaded.

  • @HassanAli-xd7jg
    @HassanAli-xd7jg 5 лет назад

    Your are the best

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

    Awesome video... Keep up the great work!!!!

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

    Great video thanks I was totally nothing.

  • @globalentertainment3169
    @globalentertainment3169 8 лет назад +2

    Done perfectly, thank you

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

    Thank you so much ! I was desperately searching an option for this. My table has lots of records in it. I want it to set the height of the table and use a scroll bar to move up or down. please help.

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

    Thank you, It was very simple and helpful!

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

    you are great bro.... thank u so much........

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

    job well done

  • @aurelfrancis
    @aurelfrancis 5 лет назад +4

    hi i am getting this error
    Parse error: syntax error, unexpected 'update' (T_STRING), expecting ',' or ';' in C:\xampp\htdocs\edit.php on line 44
    please help

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

    Good Tutorial, Thank you.

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

    Executed without error thank u:)

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

    Lot of thanks bro.

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

    Thank you very much Boss,

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

    i love you, thanks, this mean a lot for me

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

    What about having just on single update or submit button?

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

    Really good nice job bro....

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

    Thanks! For Tutorial. I am new on the php and mysql. Just i want to know, if i want to show and update the image then what i need to do?

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

    You re KING!

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

    THANK YOU SOOO MUCH!

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

    Hi
    how can i add +1 to the value in my data base?
    for example in salary you have 8000 when i clik the button add +1 to the value to get 8001

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

    Thanks bro

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

    Awesome bro

  • @tejaswiniwalde8257
    @tejaswiniwalde8257 5 лет назад +3

    sir,
    these code shows the error i.e. Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in E:\xampp\htdocs\mycode\index.php on line 20

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

    good

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

    Nice one!
    However, The execute query for the update.php worked without the curly braces in the if statement.... Interesting

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

    Great video

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

    Good Tutorial. But i want to ask what if we want to save the data to another table

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

    Thank you!

  • @ane-manda
    @ane-manda 4 года назад

    thank you

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

    Can we update mutiple rows in single submit button rather than updating one by one ?

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

    How about if a want to update all records at the same time? If I want it to update all salary of all records with one one click or button? Batch update

  • @ericfianu6090
    @ericfianu6090 8 лет назад +4

    Great video. Helped me a lot. But one thing I want to ask is how can I update only one row or item instead of displaying all bcos if I have a long list it will be inneficient to load all datas. I just need to update one data at a gym. Can u pls pls make a video for that?

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

      +Eric Fianu I will Make the video for Update only one record.

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

      Will be checking on it. But thanks so much

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

      any link to that video??

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

      need that code too, asap. kindly help please. u can email me the code at mtandimartin@gmail.com

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

      I know its late but if anyone come across your question, this will help.
      In the page where you want to show one record, just add the WHERE tag -
      $sql = "SELECT * FROM your_table_name WHERE ID='$_GET[id]'";

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

    Hi I am creating tabular form where user will land on the form after accessing the provided unique link, there on the form he should enter or update the data when he will click on save tab button which will be provided on every tab. Can you please help me with this?, I got success for fetch the data from form and insert into the database but when update form doesn't work.

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

      +sandesh nirulkar Hi Sandesh ,
      I will be happy to help you.
      Can you please provide the complete code , I will try to solve the problem.

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

      Here is the code:
      Please help me with this

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

    thanks a lot :)

  • @alsahiq.n.4989
    @alsahiq.n.4989 4 года назад +1

    Thanx, can u explain how to update but one submit

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

    how do you update a form but if user leaves say a password field blank it doesnt update the db with a blank value and leaves the value alone in the database. i.e a password that isnt displayed to user for security reasons but they can update the password.

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

    How would you use just one button to update them all rather than having to click a separate button for each row?

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

    Sir if I want to update file photo, how to update? because in update.php I adding before update like this
    $photo_tmp = $_FILES[photo][tmp_name];
    $photo = $_FILES[photo][name];

    $sql = "UPDATE data_users SET photo = $photo , alumni= '$_POST[alumni]' WHERE username= '$_POST[id]'";
    getting error

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

    I already copy your codes to update my database but my database is not updating

  • @maxcohen13
    @maxcohen13 9 лет назад +1

    Nice video! What is needed for a confirmation message after an entry has been successfully changed?
    I tried using *echo* "Success!"; but I got an error.

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

      Can you please give code in which you are getting error. Post that code in this comment or Fell free to contact on mohd.asim4sk@gmail.com

    • @maxcohen13
      @maxcohen13 9 лет назад +1

      +The Programming Geek
      I guess I do not know where to put a confirmation message. I thought of this (in the update.php):
      if (mysqli_query($con,$sql))
      header ("refresh:1; url=index.php; echo 'Success';");
      This did not work. Perhaps the echo statement would go in brackets? I'm not sure.

    • @TheProgrammingGeek
      @TheProgrammingGeek  9 лет назад +2

      +maxcohen13
      Try This one:-
      if(mysqli_query($con,$sql))
      {
      echo"Success";
      header("refresh:1; url=index.php");
      }

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

      Ah, brackets. I will try. Thank you!

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

      +maxcohen13
      Does that code solved your problem.
      Put echo tag before the header function if you put echo after header the page will be redirected before showing success. And also don't use echo inside header.

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

    Video is very nice sir but video is little bit blur. Plz check this part

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

      +Preeti Gupta
      Sure I will upload future videos in good quality.

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

    What if we have to update data of only one user how will we do that because in this code all the users are displayed at the same time.

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

    Hi, I'd like to ask you to make a video. I made a database with all 3 different columns in it and about 600 rows. I made a query to filter the rows. I want the first column and second column to be read only and in the third column there should appear a checkbox. The query shows ~30 rows each time, I want to be able to tick all third columns from each row and then update them all at once with one button. If you got time, please tell me how by making a video. Thanks in advance!

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

    Sorry, I don't speak english very well. I have a question, when i press the button, the input type don't update. I don't know why, it dosent' say error but it don't update

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

    i cant update a DATE column. it throws an index error message

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

    I have an error with the update syntax. It says "Notice: Array to string conversion in C:\xampp\htdocs\studfolio\update_prof.php on line 7"
    Here's the code:
    $sql = "UPDATE users SET fname='$_POST[fname]', mname='$_POST[mname]', lname='$_POST'[lname] where empID = '$_POST[empID]'";

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

    thanks man

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

    sir my version 5.5.38 which is supported mysql or mysqli.can u tell me please

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

      +pravn gundeti
      PHP 5.5.38 supports MySQLi
      From PHP 5.5 MySQL is Deprecated, you have to use MySQLi or you can use PDO_MySQL.

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

    Hello, i am having a problem with my update, it says successfully update but no update happening in the database, please help!

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

      Can You Please Share your code ? , I happy to help you ,
      Asim
      From
      The Programming Geek

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

      should i post it here Aslim?

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

      Yes, You can post it here.
      Or you can email me at mohd.asim4sk@gmail.com
      Thanks,
      Asim
      From
      The Programming Geek

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

      @@TheProgrammingGeek i also tried this nd i m also facing the same problem pls tell how to resolve it

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

    hi can you please help me in creating registration system that automatically generates id ??

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

    Parse error: syntax error, unexpected 'header' (T_STRING) in C:\xampp\htdocs\popv2\scripts\update.php
    help

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

    can it be use on php version 5?

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

    thanks for your tutorial, but unable to update the database, pls help

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

    Thamkyou but how can you find the total salary and install in the data base

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

    I follow step by step , but still not updated :(

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

    hi ,if i want to send one person's salary to other then how to do that ?

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

    i have a problem. it keeps saying UNDEFINED INDEX at the update.php How do i fix this?

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

      +Syamil Fuad
      Hi Syamil Fuad
      Can you please provide your PHP Code.

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

      +The Programming Geek yes do i provide it here?

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

      The Programming Geek i have two fies .php 1st one is for the index purpose, i named it admin_registrar_pending.php. 2nd is admin_registar_update.php which is the problem file

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

      1st file codes:
      admin registrar student
      .active {
      background-color: #4CAF50;
      }

      Profile
      Guideline
      Apply
      Official receipt
      EPF withdrawal letter
      Confirmation letter

      Status
      Logout
      PENDING STATUS LIST

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

      2nd file codes:

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

    error shown in update query
    Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)

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

    Sir mere program me error nhii aa rahi h but update bhi nhii ho raha h plzz help me

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

    How come you don't call mysql_close() ?

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

    Do you have a link to the code?

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

    database ko select kese karte hai

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

    can u make loan update video as you make it

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

      +Asim toppo
      I am happy to help you, Can you please describe which tutorial you want ? I will make it for you.

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

      Hii,
      I need a complete form with checkboxes, textfield etc, when submitted from front end, it should go to backend, where the admin is able to edit, archive and search for the form. The submitted form should be in table.
      My project is about a form. If information is submitted correctly, it should go to archive..
      plzzzz help, if u have any references :( if possible make the video soon before 13 March. Thanks

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

    how to reduce the value by updating

  • @MuhammadAli-zg2nw
    @MuhammadAli-zg2nw 4 года назад

    for form of type='submit', you dont have name. Dont know how is it working for u

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

    sir code error dera echo (T_ECho)

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

    Name Age Salary show the out put in browser

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

    can anyone send the code? I have an assignment in less than hour :(

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

    Welcome to spaghetti code

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

    Im getting an error with my update query.
    $sql = "UPDATE library SET ISBN='$_POST[ISBN]', Author='$_POST[Author]',Title='$_POST[Title]',Year='$_POST[Year]', WHERE Book_id='$_POST[id] ' ";

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

      +Guru101
      What error is shown , please paste that error.

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

      yeah dude! 4 out 5 tutorials end up in an error. this is seen as easy and in a pain in the ass

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

      remove the colon( , ) after [ Year]'

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

    does anyone have source code for this?

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

    Tysm sir please send me the code please

  • @SureshKumar-qx6vh
    @SureshKumar-qx6vh 3 года назад

    Pls tutorial in hindi

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

    help me????

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

    source code?

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

    Dislike for no source code

  • @Sachinsharma-zl2kh
    @Sachinsharma-zl2kh 5 лет назад

    thoda aache se Btao bhai

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

    sir aapka whatsapp no. kiya hai

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

    bhai kyu farji video dal kr logo ko bewkuf ban rha hai aur IT walo ka insult kra raha hai bhai

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

    Done perfectly, thank you

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

    Thank You

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

    Thank you ~