-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
38 lines (33 loc) · 1.02 KB
/
menu.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
<?php require("auth.php"); ?>
<?php
$id = $_SESSION['id'];
$dbh = new PDO('mysql:host=localhost;dbname=skillx', 'root');
$stmt = $dbh->prepare("SELECT uname, name FROM users WHERE id=:id");
$stmt->execute(array(':id' => $id));
$user = $stmt->fetch();
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#5E5DA9">
<link rel="stylesheet" type="text/css" href="/css/common.css">
<link rel="stylesheet" type="text/css" href="/css/menu.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<div class="main">
<h1>Skill<span>x</span></h1>
<h2>Menu</h2>
<nav>
<a href="/categories.php">Watch Tutorial</a>
<a href="/upload.php">Upload Tutorial</a>
<a href="/user.php">User Account</a>
</nav>
</div>
<a id="logout" href="/logout.php">Logout</a>
</body>
</html>