-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paths_delete.php
More file actions
31 lines (29 loc) · 963 Bytes
/
s_delete.php
File metadata and controls
31 lines (29 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
$title="SUCCESS";
require_once 'includes/header.php';
require_once 'db/conn.php';
require_once 'includes/auth_check.php';
if (!isset($_GET['id'])){
echo "<h1 class='text-danger'>ERROR</h1>...</h1>";
}else{
$id = $_GET['id'];
$isSuccess=$crud->removeVlog($id);
if($isSuccess){
echo "<a class= 'btn btn-info' href='courses.php'>Back to Couses</a>";
echo "<h1 class='text-center text-sucess'>SUCCESSFULLY DELETED</h1>";
}
else{
echo "<a class= 'btn btn-info' href='courses.php'>Back to Couses</a>";
echo "<h1 class='text-center text-danger'>UNSUCCESSFUL...</h1>";
}
}
?>
<?php
echo "<div class='card position-absolute top-50 start-50 translate-middle' style='width: 18rem;'>";
echo "<div class='card-body'>";
echo "<h1>SUCCESSFULLY DELETED</h1></div>";
echo "</div><br/>"
?>
<?php
require_once 'includes/footer.php' ;
?>