-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.php
49 lines (49 loc) · 1.09 KB
/
account.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
48
49
<head>
<link rel="stylesheet" href="css/header.css" type="text/css" />
<link rel="stylesheet" href="css/account.css" type="text/css" />
</head>
<?php
session_start();
if(!isset($_SESSION['sess']))
{
echo "<script>location='login.php'</script>";
}
include('header.php');
$email=$_SESSION['sess'];
mysql_connect("localhost","root","");
mysql_select_db("mysite");
$data=mysql_query("select * from user where Email='$email'");
$data1=mysql_query("select * from score where Email='$email'");
while($row=mysql_fetch_row($data))
{
$name=$row[1];
$user=$row[5];
}
while($row=mysql_fetch_row($data1))
{
$prev=$row[2];
$total=$row[3];
}
?>
<div class="account_page">
<div class="account_container">
<div class="account_head">
<center><h1>Account Information</h1></center>
</div>
<div class="horiz">
Name: <?php echo " $name";?>
</div>
<div class="horiz">
Username: <?php echo " $user";?>
</div>
<div class="horiz">
Previous Score: <?php echo " $prev";?>
</div>
<div class="horiz">
Total Score: <?php echo " $total";?>
</div>
<div class="account_foot">
<center><h3><?php echo " $email";?></h3></center>
</div>
</div>
</div>