-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.php
47 lines (32 loc) · 1.09 KB
/
home.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
<?php
session_start();
if(!isset($_SESSION['Eid']))
header('location:login.php');
?>
<?php include "head.php"; ?>
<!-- <a href="logout.php">LOGOUT</a> -->
<br><br>
<center><h1> Welcome
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "supermarket";
$Eid = $_SESSION['Eid'];
$mysqli = new mysqli($servername, $username, $password, $dbname);
$sqlSelect="SELECT Employee_Name FROM employee where Employee_ID = $Eid";
$result = $mysqli-> query ($sqlSelect);
echo mysqli_fetch_array($result)[0];
?>
</h1></center>
<br>
<img src = "superExterior.jpg" style = " display: block; margin-left: auto; margin-right: auto; width: 50%;" >
<!-- <a href="summary.php">Summary</a> -->
<!-- <a href="suppliers.php">Suppliers</a>
<a href="purchase.php">Purchase</a>
<a href="godowns.php">Godowns</a>
<a href="restock.php">Restock</a>
<a href="showrooms.php">Showrooms</a>
<a href="sale.php">Sale</a>
<a href="customers.php">Customers</a>
<br><br><a href="items.php">Items</a> -->