-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
47 lines (42 loc) · 1.32 KB
/
index.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
<?php
session_start();
//---------------------------------------
//author: Lindsey Wells
//description: home page
//---------------------------------------
$connString = "mysql:host=localhost;dbname=GusNicholsLibrary";
$user ="root";
$pass ="root";
try {
$pdo = new PDO($connString, $user, $pass);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//echo 'Connected successfully! <hr>';
}
catch(PDOException $e)
{
echo 'Connection failed: ' . $e->getMessage();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset=UTF-8>
<link rel="stylesheet" href="css/Style.css">
<title>Gus Nichols Archives</title>
</head>
<body>
<div class="nav">
<!--Banner and navigation bar !-->
<img src="images/GusNicholsBanner.jpg" alt="Gus Nichols Archives Banner" height="79" width="1360">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="ChoosePublicationToView.php">View Publications</a></li>
<li><a href="importFile.php">Import Yearbook</a></li>
<li><a href="search.php">Search</a></li>
</ul>
<hr>
<!--Banner and navigation bar !-->
</div>
<img src='images/books.jpg' width='1102' height='541' alt='books'>
</body>
</html>