ok
Direktori : /home1/indocan/public_html/admin/ |
Current File : /home1/indocan/public_html/admin/delete_testi.php |
<?php require_once ('conn.php'); $id = (isset($_GET['id']) ? $_GET['id'] : ''); $result = mysqli_query($conn, "DELETE FROM `testi` WHERE idtesti='$id'"); if($result){ echo "<script>alert('Record Delete Successful')</script>"; echo "<script>window.location = 'view_testi.php'</script>"; }else{ echo "<script>alert('Record Delete Failed')</script>"; echo "<script>window.location = 'view_testi.php'</script>"; } ?>