Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (46 sloc) 1.67 KB
<?php
require("../dbCon.php");
require("../commonFunctions.php");
$sql = "SELECT * FROM employees WHERE EmployeeID = '" . $_SESSION["EmployeeID"] . "'";
//echo $sql;
if (!$result = $con->query($sql)) {}
$row = $result->fetch_assoc();
if ($row) {
$FirstName = $row['FirstName'];
$Photo = $row['Photo'];
}
//echo "Welcome " . $_SESSION["userName"] . "!";
?>
<html>
<head>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<div id="header">
<?php writeMenuEmp(basename($_SERVER['PHP_SELF'])); ?>
<!--
<ul id="menu" class="blue">
<li class="active"><a href="Dashboard.php">Home</a></li>
<li><a href="OrdersToFill.php">Active Orders</a></li>
<li><a href="EditProducts.php">Search/Edit Products</a></li>
<li><a href="EditCategories.php">Edit Categories</a></li>
<li><a href="ReviewCustomerDemographics.php">Review Customer Information</a></li>
<li class='fRight'><a href="logout.php">Log Out</a></li>
</ul>
-->
</div>
<div id='contentwrapper'>
<h1>
<?php
echo "Welcome " . EXPLODE(" ",$FirstName)[0] . "!";
//loadPicture($Photo, 30);
/*
$sql = "SELECT * FROM northwind.`alphabetical list of products`;";
if (!$result = $con->query($sql)) {}
table($result);
*/
?>
</h1>
</div>
</body>
</html>
You can’t perform that action at this time.