-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete.php
More file actions
37 lines (35 loc) · 872 Bytes
/
delete.php
File metadata and controls
37 lines (35 loc) · 872 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
32
33
34
35
36
37
<?php
include "connect.php";
if(isset($_GET['playerID'])){
$id = $_GET['playerID'];
}
// Delete the row from the database
$sql = "DELETE FROM calendar WHERE id = $id";
if ($conn->query($sql) === TRUE) {
echo "Επιτυχής διαγραφή.";
} else {
echo "Error deleting record: " . $conn;
}
// Close the connection
$conn->close();
?>
<!DOCTYPE html>
<html>
<head>
<style>
.blue-color {
color:blue;
}
</style>
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
</head>
<body>
<script>
window.setTimeout(function() {
window.location = 'showAppointments.php';
}, 1250);
</script>
Επιστροφή...
</body>
</html>