-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathannouncement_edit.php
More file actions
32 lines (26 loc) · 1.05 KB
/
announcement_edit.php
File metadata and controls
32 lines (26 loc) · 1.05 KB
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
<?php include 'inc/header1.php' ?>
Ανακοινώσεις
<?php include 'inc/header2.php' ?>
<div class="container">
<div class="content">
<?php
$id = $_GET['id'];
$sql = "SELECT * FROM announcements WHERE id = $id";
$res = mysqli_query($conn, $sql) or die(mysqli_error($conn));
$edit_announcement = mysqli_fetch_assoc($res);
?>
<form action="ann_edit_upload.php?id=<?php echo $id; ?>" method="POST">
<p>
<label for="subject"><b>Θέμα:</b></label><br>
<input type="text" id="subject" name="subject" value=<?php echo $edit_announcement['subject'] ?>>
</p>
<p>
<label for="body"><b>Κείμενο ανακοίνωσης:</b></label><br>
<textarea id="body" name="body" required><?php echo $edit_announcement['body'] ?></textarea>
<br>
</p>
<input type="submit" name='submit' value='Ενημέρωση'>
</form>
</div>
</div>
<?php include 'inc/footer.php' ?>