-
Notifications
You must be signed in to change notification settings - Fork 1
/
news-and-events.php
65 lines (55 loc) · 1.49 KB
/
news-and-events.php
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
62
63
64
65
<?php
include 'config.php';
$profiles = $conn->query(" SELECT TO_CHAR(Date, 'DD MONTH YYYY') Dt, Headline, Summary, Image, Link FROM NewsEvents ORDER BY SlNo DESC ");
//$profiles = $conn->query(" SELECT * FROM NewsEvents ORDER BY SlNo DESC ");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Profile</title>
<link rel="stylesheet" type="text/css" href="CSS/StylesMain.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0">
<script type="text/javascript" src="Javascript/ScriptMain.js"></script>
</head>
<body>
<?php include 'sidebar.php' ?>
<div style="margin-left:25%">
<div style="margin-right:5%">
<main>
<h1>News and Events</h1>
<?php while ($profile = $profiles->fetch_assoc()) { ?>
<div class="person-info">
<img
src="Images/Members/<?php echo $profile['Date']; ?>.jpg"
class="person-image"
alt="<?php echo $profile['Date']; ?>"
>
<div class="person-details">
<div class="person-name">
<?php echo $profile['Headline']; ?>
</div>
<div class="news-date">
<?php
echo($profile['Dt']);
//echo date($dt1);
//echo date_format($date,"jS F, Y");
?>
</div>
</div>
<div class="news-summary">
<br>
<?php echo $profile['Summary']; ?>
<a
href=<?php $profile['Link']; ?>
class="news-more"
>
More
</a>
</div>
</div>
<?php } ?>
</main>
</body>
</html>