jQuery Deleting Record from MySQL Table Row in Ajax

JavaScript jQuery

jQuery Deleting Record from MySQL Table Row in Ajax

Today, We want to share with you jQuery Deleting Record from MySQL Table Row in Ajax.
In this post we will show you jQuery Deleting Record from MySQL Table Row in Ajax, hear for jQuery Deleting Record from MySQL Table Row in Ajax we will give you demo and example for implement.
In this post, we will learn about How to Delete Record from MySQL Table with AJAX with an example.

Simple Mysql DATABASE DETAILS

your database name : pakainfo
your table name : delete
your column names : id, content

List Of Files

1.dbcon.php
2.do_delete.php
3.index.php

The above all files and JQuery external min file in important too Include.

dbcon.php

do_delete.php

INDEX.PHP


<div class="container">

<div class="show">
<span class="name"></span>
<span class="action"><a href="#" id="" class="delete" title="Delete">X</a></span>
</div>
 
</div>

AJAX SCRIPT


$(function() {

//class name is delete
$(".delete").click(function(){
//get element
var element = $(this);

//store id
var del_id = element.attr("id");
var info = 'id=' + del_id;
if(confirm("Are you sure you want to delete this?"))
{
 $.ajax({
   type: "POST",
   url: "do_delete.php",
   data: info,
   success: function(){
 }
});
  $(this).parents(".show").animate({ backgroundColor: "#003" }, "slow")
  .animate({ opacity: "hide" }, "slow");
 }
return false;
});
});

We hope you get an idea about jQuery Deleting Record from MySQL Table Row in Ajax
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

We hope This Post can help you…….Good Luck!.

Searches related to : jQuery Deleting Record from MySQL Table Row in Ajax

  • ajax delete table row in php
  • delete using ajax jquery
  • delete record without a page refresh with ajax in php
  • ajax table – add edit delete rows dynamically using jquery php
  • how to delete mysql rows with ajax & jquery
  • delete row from table using ajax in php
  • live table add edit delete using ajax jquery in php mysql
  • ajax delete function in php

Related FAQ

Here are some more FAQ related to this Article:

  1.   Add Edit And Delete Records Using jQuery Ajax PHP And MySQL
  2.   Delete Table Rows Using PHP JQuery Ajax
  3.   Dropzone php mysql Example with Demo
  4.   Simple PHP jQuery Ajax Insert Update Delete using MySQLi
  5.   Laravel 6 Insert Update and Delete record from MySQL
  6.   PHP Multiple images upload using jQuery Ajax
  7.   Laravel 6 Custom Authentication System
  8.   javascript object Remove key value Examples
  9.   PHP cURL Http Authorization Pass Header Examples
  10.   Laravel 6 Sweet Alert Tutorial With Example

Leave a Reply

Your email address will not be published. Required fields are marked *