shit
This commit is contained in:
@@ -9,13 +9,25 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<span style="font-family: cursive; color:white; font-size: xx-large;" >Placeholder</span>
|
||||
<a href="home.php" style="font-family: cursive; color:white; font-size: xx-large; text-decoration: none"> Placeholder</a>
|
||||
|
||||
</header>
|
||||
<div class="login-box">
|
||||
<h2>Hello, User</h2>
|
||||
<h2>Hello, <?php
|
||||
session_start();
|
||||
$empID = $_SESSION['EmployeeID'];
|
||||
$connect = mysqli_connect("localhost", "root", "", "g1_pila") or die("Unable to connect");
|
||||
if($empID == ''){
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$sql = "SELECT OWNER FROM store WHERE STORE_ID=$empID ";
|
||||
$result = mysqli_query($connect, $sql);
|
||||
$row = mysqli_fetch_assoc($result);
|
||||
echo $row['OWNER'];
|
||||
?></h2>
|
||||
<header>
|
||||
<nav>
|
||||
<nav style="margin-left: 35%">
|
||||
<table>
|
||||
<tr>
|
||||
<th><a href="display.php">
|
||||
@@ -24,6 +36,13 @@
|
||||
<span></span>
|
||||
<span></span>Display Table</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><a href="createUser.php">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>Create User</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><a href="Insert.php">
|
||||
<span></span>
|
||||
@@ -31,6 +50,14 @@
|
||||
<span></span>
|
||||
<span></span>Insert</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><a href="logout.php">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>Log-off</a></th>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user