Ajax Delete multiple data with checkboxes in PHP Jquery Mysql

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

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

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

    It works very easily and efficiently through your video.

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

    Very strange robotic voice, but somehow the material is clear.good job!!!

  • @santhoshkumar-sf4bc
    @santhoshkumar-sf4bc 6 лет назад

    you are really great sir, your teaching well, nd i'm regularly watching your videos

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

    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.

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

    Really Great Tutorial sir, Thank You so Much sir

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

    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

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

    Thank you very much sir. You've been helping me a lot. God bless you 😊

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

    Thanks for this video
    It's very useful
    and help me with checkboxes problem :)

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

    Thank you for this amazing tutorial

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

    sir how i can delete multiple rows with images, included this rows form folder?
    He said try for each loop

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

    Excellent, Thank you so much

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

    Awesome, bro. Carry on. Thanks a lot.

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

    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.

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

      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

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

    thanks very much. good tutorial. Please can you do a video with ajax select

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

    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?

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

    muchas Gracias me sirvio Mucho ....

  • @proxygulshan
    @proxygulshan 3 года назад

    how to do that including another selected with pagination ?

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

    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

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

    thanks . Can you make tutorial on shopping cart using ajax and php?

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

    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

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

    thank you sir..

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

    Is it safe from Sql Injections?

  • @SaifulIslam-dn3tj
    @SaifulIslam-dn3tj 5 лет назад

    Great tutorial,

  • @محمدالسبيعي-ك5غ8ظ
    @محمدالسبيعي-ك5غ8ظ 4 года назад

    Thanks a lot bro

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

    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

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

    need a help
    about the data send through ajax data attribute? what are those parameters? {id:id} please define

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

    How to select multiple values from database using checkbox

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

    Thank You so much

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

      Dear Inzi Khan, you are most welcome. Stay connected with us.

  • @YenNguyen-em6cf
    @YenNguyen-em6cf 8 лет назад +1

    thanks

  • @BradleyHerbst
    @BradleyHerbst 8 лет назад +3

    Friends!

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

    Thank you

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

      Thank you Tan Dat for your kind words.

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

    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.

  • @MarcosVinicius-gj6qg
    @MarcosVinicius-gj6qg 7 лет назад

    Muito bom

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

      Thank you Marcos Vinicius for your kind words.

    • @MarcosVinicius-gj6qg
      @MarcosVinicius-gj6qg 7 лет назад

      Obrigado por compartilhar. Seus tutoriais são referência para mim. Parabéns pelo excelente conteúdo.

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

    thanks