Great tutorial, i have a problem when i click the button it deletes the rows that i want in my database, but i can still see them on my page, im using jquery 1.12.2 version.
Hi, I've been following your videos and I've learned a lot. I am a beginner in systems programming and as such I always have doubts. I would like to know if it is possible to do this with tables using check box to choose and instead of deleting add in another table with the remove options in the other table and return to the first table. It would actually look like the vídeo “Insert Dinamic Multi Select Box Data using Jquery Ajax PHP” Thank you very much
Very nice! One question though, isn't it expensive to execute DELETE multiple times? Couldn't it be execute altogether using something like "...WHERE customer_id IN ('" array here "')"? I am just starting with web coding, so please feel free to correct me if I am being unrealistic.
Hi sir.. thanks for making this video , its help me so much. but i want to ask you something, i have follow this code and it work, but when i delete the data from my table and try to refresh the page . the data comeback and my database from phpmyadmin still not remove. what should i do?
great video I tried to change the name delete ( Delete ) to so I can select all, but it is not working. What should I do to be able to select all rows at the same time. thank you
Your script has some issues if we don't have check any checkbox, he will always ask : do you want to delete ? However we don't have selected any row. So i tried to improve and i think it's better to use this one : $(document).ready(function(){
$('#btn_delete').click(function(){
var id = []; $(':checkbox:checked').each(function(i){ id[i] = $(this).val(); });
if(id.length === 0) //tell you if the array is empty { alert(Please Select atleast one checkbox."); } else if(confirm("Are you sure you want to delete this?")) { $.ajax({ url:'delete.php', method:'POST', data:{id:id}, success:function() { for(var i=0; i
Bonjour, merci pour ce tutoriel. J'ai suivi ce tutoriel mais je n'arrive pas à le faire fonctionner, la suppression ne se fait pas? avec vous eu ce problème, j'ai pas de message d'erreur je peut faire voir mon code si vous le souhaiter. merci de votre aide.cordialement
I need help. It is only sending ID, that is why i can delete the information from database. can you help me doing this... i want to delete file from folder also... if(isset($_GET['id'])){ $id=$_GET['id']; $name=$_GET['name']; if(unlink('../docs/'.$_GET['name'])){ $stmt=$db->prepare("delete from test where id='$id'"); $stmt->execute(); } this is just without using ajax and can only delete a single file at once. Need a method for deleting all the selected checkbox item from db as well as folder. Thanks.
It works very easily and efficiently through your video.
Very strange robotic voice, but somehow the material is clear.good job!!!
you are really great sir, your teaching well, nd i'm regularly watching your videos
Great tutorial, i have a problem when i click the button it deletes the rows that i want in my database, but i can still see them on my page, im using jquery 1.12.2 version.
Really Great Tutorial sir, Thank You so Much sir
Hi,
I've been following your videos and I've learned a lot. I am a beginner in systems programming and as such I always have doubts.
I would like to know if it is possible to do this with tables using check box to choose and instead of deleting add in another table with the remove options in the other table and return to the first table.
It would actually look like the vídeo “Insert Dinamic Multi Select Box Data using Jquery Ajax PHP”
Thank you very much
Thank you very much sir. You've been helping me a lot. God bless you 😊
Thanks for this video
It's very useful
and help me with checkboxes problem :)
Thank you for this amazing tutorial
sir how i can delete multiple rows with images, included this rows form folder?
He said try for each loop
Excellent, Thank you so much
Awesome, bro. Carry on. Thanks a lot.
Very nice! One question though, isn't it expensive to execute DELETE multiple times? Couldn't it be execute altogether using something like "...WHERE customer_id IN ('" array here "')"? I am just starting with web coding, so please feel free to correct me if I am being unrealistic.
Bonjour, J'ai suivi ce tutoriel mais je n'arrive pas à le faire fonctionner, la suppression ne se fait pas? avec vous eu ce problème
thanks very much. good tutorial. Please can you do a video with ajax select
Hi sir.. thanks for making this video , its help me so much. but i want to ask you something, i have follow this code and it work, but when i delete the data from my table and try to refresh the page . the data comeback and my database from phpmyadmin still not remove. what should i do?
muchas Gracias me sirvio Mucho ....
how to do that including another selected with pagination ?
great video
I tried to change the name delete ( Delete ) to so I can select all, but it is not working.
What should I do to be able to select all rows at the same time.
thank you
thanks . Can you make tutorial on shopping cart using ajax and php?
Your script has some issues if we don't have check any checkbox, he will always ask : do you want to delete ? However we don't have selected any row. So i tried to improve and i think it's better to use this one :
$(document).ready(function(){
$('#btn_delete').click(function(){
var id = [];
$(':checkbox:checked').each(function(i){
id[i] = $(this).val();
});
if(id.length === 0) //tell you if the array is empty
{
alert(Please Select atleast one checkbox.");
}
else if(confirm("Are you sure you want to delete this?"))
{
$.ajax({
url:'delete.php',
method:'POST',
data:{id:id},
success:function()
{
for(var i=0; i
thank you sir..
Is it safe from Sql Injections?
Great tutorial,
Thanks a lot bro
Bonjour, merci pour ce tutoriel.
J'ai suivi ce tutoriel mais je n'arrive pas à le faire fonctionner, la suppression ne se fait pas? avec vous eu ce problème, j'ai pas de message d'erreur je peut faire voir mon code si vous le souhaiter. merci de votre aide.cordialement
need a help
about the data send through ajax data attribute? what are those parameters? {id:id} please define
How to select multiple values from database using checkbox
Thank You so much
Dear Inzi Khan, you are most welcome. Stay connected with us.
thanks
Friends!
Thank you
Thank you Tan Dat for your kind words.
I need help.
It is only sending ID, that is why i can delete the information from database.
can you help me doing this...
i want to delete file from folder also...
if(isset($_GET['id'])){
$id=$_GET['id'];
$name=$_GET['name'];
if(unlink('../docs/'.$_GET['name'])){
$stmt=$db->prepare("delete from test where id='$id'");
$stmt->execute();
}
this is just without using ajax and can only delete a single file at once.
Need a method for deleting all the selected checkbox item from db as well as folder.
Thanks.
Muito bom
Thank you Marcos Vinicius for your kind words.
Obrigado por compartilhar. Seus tutoriais são referência para mim. Parabéns pelo excelente conteúdo.
thanks