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.65 KB
<?php
require("../dbCon.php");
$sql = "SELECT * FROM customers WHERE CustomerID = '" . $_SESSION["CustomerID"] . "'";
//echo $sql;
if (!$result = $con->query($sql)) {}
$row = $result->fetch_assoc();
if ($row) {
$CompanyName = $row['CompanyName'];
$ContactName = $row['ContactName'];
$ContactTitle = $row['ContactTitle'];
$Address = $row['Address'];
$City = $row['City'];
$Region = $row['Region'];
$PostalCode = $row['PostalCode'];
$Country = $row['Country'];
$Phone = $row['Phone'];
$Fax = $row['Fax'];
}
//echo "Welcome " . $_SESSION["userName"] . "!";
?>
<html>
<head>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<div id="header">
<ul id="menu" class="blue">
<li class="active"><a href="cDashboard.php">Home</a></li>
<li><a href="cEditProfile.php">Edit Profile</a></li>
<li><a href="cSearchProduct.php">Search Product</a></li>
<li><a href="cCreateOrder.php">Create Order</a></li>
<li><a href="cPayment.php">Payment</a></li>
<li><a href="cCart.php">Cart</a></li>
<li><a href="cPastOrders.php">Past Orders</a></li>
<li class='fRight'><a href="logout.php">Log Out</a></li>
</ul>
</div>
<div id='contentwrapper'>
<h1>
<?php
echo "Welcome " . EXPLODE(" ",$ContactName)[0] . "!";
?>
</h1>
</div>
</body>
</html>
You can’t perform that action at this time.