No added datainto database, and not shown in table append using AJAX and PHP

前端 未结 3 1285
执念已碎
执念已碎 2021-01-20 10:50

I am still in the same problem in this link here. So, I used the append method. And here is the AJAX code:



        
3条回答
  •  迷失自我
    2021-01-20 11:20

    please correct your json data which you are sending to server

     data: {'insert_new': 1, 'selectW': selectW, 'select_at': select_at, 'pay': pay, 'facture': facture, 'select_opt': select_opt},
    

    and in php add a die

     if(isset($_REQUEST['insert_new'])){
         // your code
    
        die(); // just before closing the if to make sure you are not echoing anything more;
     }
    

提交回复
热议问题