-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
34 lines (33 loc) · 1.41 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
<?php
include("configuration.php");
session_start();
if(!isset($_SESSION['email']))
{
header("location:index.php");
}
$email=$_SESSION['email'];
$sql=mysqli_query($al,"SELECT * FROM users WHERE email='$email'");
$b=mysqli_fetch_array($sql);
$name=$b['name'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Chatter-Box | HOME</title>
<link href="scripts/styleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<span class="heading">Welcome <?php echo $name;?></span><span style="float:right"><a href="logout.php">
<img src="images/logout.png" height="50" width="100" /></a></span>
<hr style="border:6px dotted #63C;"/><br />
<br /><div align="center">
<table class="table" cellpadding="6" cellspacing="6">
<tr><td align="center">
<span class="tableHead" style="text-decoration:underline;">User Commands</span><br /><br />
<a href="box.php"><img src="images/box.jpg" height="65" width="95" style="border-radius:6px;" /></a>
<a href="conversation.php"><img src="images/conv.jpg" height="65" width="95" style="border-radius:6px;" /></a><br />
<a href="changePassword.php"><img src="images/pass.jpg" height="65" width="95" style="border-radius:6px;" /></a>
</td></tr></table></div>
</body>
</html>