|
function deletePost(id) {
|
|
$.ajax({
|
|
type: 'get',
|
|
url: '../Backend/controller/deletePost.php',
|
|
data: {'delete_id':id},
|
|
success:function (data) {
|
|
console.log("Delete was a success");
|
|
},
|
|
error:function (data) {
|
|
console.log("Delete was not a success");
|
|
}
|
|
});
|
|
} |