31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
<html>
|
|
<head>
|
|
<title>User</title>
|
|
<link rel="stylesheet" href="./profile.css" type="text/css" />
|
|
</head>
|
|
|
|
<body>
|
|
<div id="area">
|
|
<img src="../../icon/buyer.svg">
|
|
<h2 style="margin: none;">
|
|
<?php
|
|
include '../../indexes/ConnectDB.php';
|
|
session_start();
|
|
echo $_SESSION['username'];
|
|
?>
|
|
</h2>
|
|
<p>User Type: Buyer</p>
|
|
<?php
|
|
$sql = "SELECT money FROM buyer WHERE name='" . $_SESSION['username'] . "'";
|
|
$res = mysqli_query($conn, $sql);
|
|
$money = mysqli_fetch_array($res);
|
|
?>
|
|
<p>Balance: ¥<?php echo $money['money']; ?></p>
|
|
<a href="../../indexes/process/receipt.php" style="text-decoration: none; color: white; background-color: rgba(69, 67, 67, 0.6);
|
|
border-top-left-radius: 5px; border-bottom-left-radius: 5px;">My Receipt</a>
|
|
<a href="../logout.php" style="text-decoration: none; color: white; background-color: rgba(69, 67, 67, 0.6);
|
|
border-top-right-radius: 5px; border-bottom-right-radius: 5px;">Log out</a>
|
|
</div>
|
|
</body>
|
|
</html>
|