-
Notifications
You must be signed in to change notification settings - Fork 0
/
cards.php
50 lines (44 loc) · 1.79 KB
/
cards.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
<?php
include_once('includes/connect.php');
include_once('includes/session.php');
include_once('includes/login.php');
?>
<!doctype html>
<html>
<head>
<title>ChronicleGE</title>
<link rel='stylesheet' href='css/reset.css' type='text/css'/>
<link rel='stylesheet' href='css/main.css' type='text/css'/>
<link rel='stylesheet' href='css/home.css' type='text/css'/>
<link rel='stylesheet' href='css/header.css' type='text/css'/>
<link rel='stylesheet' href='css/cards.css' type='text/css'/>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Crimson+Text' type='text/css'/>
</head>
<body>
<?php include_once('includes/header.php'); ?>
<div class="mainContainer">
<?php include_once('includes/nav.php'); ?>
<div class="homeContainer">
<h2>Cards</h2>
<h4>Some more text</h4>
<?php
$query = mysql_query("SELECT * FROM cards");
while ($row = mysql_fetch_array($query)) {
$cardName = $row['name'];
$cardId = $row['id'];
$link = $row['link'];
?>
<a href="card.php?id=<?php echo $cardId; ?>" >
<div class="cardGroup">
<img src="images/<?php echo $link; ?>"/>
<h6><?php echo $cardName; ?></h6>
</div>
</a>
<?php
}
?>
<div class="clear"></div>
</div>
</div>
</body>
</html>