-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetailsContent3_details.php
More file actions
61 lines (55 loc) · 2.16 KB
/
Copy pathdetailsContent3_details.php
File metadata and controls
61 lines (55 loc) · 2.16 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
session_start();
if(!isset($_SESSION['FullName'])){
header('location:login_admin.php');
}
include 'connect.php';
$icon = "";
$selectquery = "SELECT * FROM `navbar4`";
$query = mysqli_query($con, $selectquery);
if($query){
$fav_icon = mysqli_fetch_assoc($query);
$icon = $fav_icon['Image'];
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Details Content</title>
<link rel="icon" type="image/png" href="images/<?php echo $icon; ?>" />
<link rel="stylesheet" href="admin_navbar_details.css">
<link rel="stylesheet" href="detailsContent_details.css">
</head>
<body>
<?php
include 'dash_navbar.php';
?>
<nav>
<div id="add">
<a href="details_details3.php" id="submit"><i class="fa-solid fa-backward"></i> Backward</a>
<a href="detailsContent3_add.php" id="submit1">Add Content</a>
<a href="details_details4.php" id="submit2">Forward <i class="fa-solid fa-forward"></i></a>
</div>
</nav>
<div id="container">
<?php
include 'connect.php';
$selectquery = "SELECT * FROM `detailsContent3`";
$result = mysqli_query($con, $selectquery);
if($result){
while($row = mysqli_fetch_assoc($result)){ ?>
<div id="box">
<p class="content"><?php echo $row['Content1']; ?></p>
<p class="content"><?php echo $row['Content2']; ?></p>
<button id="link"><a href="<?php echo $row['Link']; ?>.php"><?php echo $row['Name']; ?></a></button>
<p><?php echo $row['Date']; ?></p>
<button type="submit" id="update"><a href="detailsContent3_update.php?update=<?php echo $row['Sr_No']; ?>">Update</a></button>
<button type="submit" id="delete"><a href="detailsContent3_delete.php?delete=<?php echo $row['Sr_No']; ?>">Delete</a></button>
</div>
<?php }
} ?>
</div>
</body>
</html>