- Joined
- Oct 20, 2014
- Posts
- 1,170
- Solutions
- 2
- Reaction
- 103
- Points
- 498
- Age
- 30
bakit kaya ito hindi nag papakita message na to
if (result.isConfirmed) {
Swal.fire(
'Deleted!',
'Your file has been deleted.',
'success'
)
}
ito code ko sa sweetalert:
$('.btn-delete').on('click', function(e) {
e.preventDefault();
const href = $(this).attr('href')
Swal.fire({
title: 'Are you sure?',
text: "You won't be able to revert this!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, delete it!'
}).then((result) => {
if (result.value) {
document.location.href = href;
}
})
})
if (result.isConfirmed) {
Swal.fire(
'Deleted!',
'Your file has been deleted.',
'success'
)
}
ito code ko sa confirmdelete:
<?php
include '../config/config.php';
$id_comment = $_REQUEST['comment_id'];
$sql_delete = mysqli_query($con, "DELETE * FROM post where comment_id = '$id_comment'");
header('location:dashboard.php');
?>
if (result.isConfirmed) {
Swal.fire(
'Deleted!',
'Your file has been deleted.',
'success'
)
}
ito code ko sa sweetalert:
$('.btn-delete').on('click', function(e) {
e.preventDefault();
const href = $(this).attr('href')
Swal.fire({
title: 'Are you sure?',
text: "You won't be able to revert this!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, delete it!'
}).then((result) => {
if (result.value) {
document.location.href = href;
}
})
})
if (result.isConfirmed) {
Swal.fire(
'Deleted!',
'Your file has been deleted.',
'success'
)
}
ito code ko sa confirmdelete:
<?php
include '../config/config.php';
$id_comment = $_REQUEST['comment_id'];
$sql_delete = mysqli_query($con, "DELETE * FROM post where comment_id = '$id_comment'");
header('location:dashboard.php');
?>