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...
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.
Thank you, I was really looking for a bare-bones and simple tutorial.
Instead of delete row if we want to insert a selected row record having table dynamically fetched from database.help me please !
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..
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 ?
What do you mean by update the null column?? I did not get , please be clear
:)
Thanks bro!
It is possible to replace the query instead of delete, into insert? To insert multiple selected checkbox in one click into the database?
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.
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
are you find solution ? i need help
it is working now . but if I want to delete the last item i get undefined array records
please im getting a error that says (Undefined array key "records")
Mine doesn't work. Whenever I click the button, it doesn't show the number of records (count).
And how to add again ...records plz.making video on it
I already had another video on same. Check it once
Can we update the multiple row on single update button in php ?
Yes obviously,,
@@CodingBirdsOnline plz sir provide the link ?
Can you tell me the code of delete-multiple.php file?
Link for Source code not work please give me new link
What's the issue. It's working 🙄
@@CodingBirdsOnline Yes, it does not work with me, it tells me the website cannot be accessed through what I am in the Middle East