how to delete multiple records using checkbox in PHP & MySQL

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • this video is about how you can delete multiple records from the database using a checkbox with PHP.
    This video may be helpful to you if you are making any web application.
    you will learn to delete multiple records in PHP using the checkbox or selected checkbox.
    Source code download
    codingbirdsonl...

КОМЕНТАРІ • 23

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

    Even after 3 years its the best explanation what I have found if we talk about clean php without JS. Simply make array of checkboxes then in cycle delete each of them one by one. Simple things can be difficult some time ,also smart people can create dumbest situations. Felt myself dumb now I feel myself smarter.

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

    Thank you, I was really looking for a bare-bones and simple tutorial.

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

    Instead of delete row if we want to insert a selected row record having table dynamically fetched from database.help me please !

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

    Can you teach that in product add form user can select morethan one image and show one image as a main image and below use the delete button and with checkbox for delete that image..

  • @jayminpatel7729
    @jayminpatel7729 5 років тому +1

    Thank for sharing this video. Instead of Delete button and deleting row, if we want to update the null column of a row using dropdown after selecting multiple checkboxes, how can we do that? Dropdown list and submit instead of delete button ?

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

      What do you mean by update the null column?? I did not get , please be clear
      :)

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

    Thanks bro!

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

    It is possible to replace the query instead of delete, into insert? To insert multiple selected checkbox in one click into the database?

    • @CodingBirdsOnline
      @CodingBirdsOnline  3 роки тому +2

      Yeah sure, just pass the data of selected records one by one and pass it looped query which you need to make it insert.
      You can customise as per requirement.

  • @0ST3PH3N0
    @0ST3PH3N0 6 років тому

    Great video :). Please I would like to know how you can add a modal displaying selected checkbox values so user can do a final confirmation? Thanks

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

    it is working now . but if I want to delete the last item i get undefined array records

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

    please im getting a error that says (Undefined array key "records")

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

    Mine doesn't work. Whenever I click the button, it doesn't show the number of records (count).

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

    And how to add again ...records plz.making video on it

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

    Can we update the multiple row on single update button in php ?

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

    Can you tell me the code of delete-multiple.php file?

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

    Link for Source code not work please give me new link

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

      What's the issue. It's working 🙄

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

      @@CodingBirdsOnline Yes, it does not work with me, it tells me the website cannot be accessed through what I am in the Middle East