Skip to content
Permalink
ae335aeb5c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
55 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>