-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (41 loc) · 1.64 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>wallet</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<link rel="preconnect" href="//fdn.fontcdn.ir">
<link rel="preconnect" href="//v1.fontapi.ir">
<link href="https://v1.fontapi.ir/css/VazirFD" rel="stylesheet">
<style>
*{font-family: Vazir FD, sans-serif}
.card{
border-radius: 10%
}
</style>
<?php
$name=$_GET['name'];
$connect = mysqli_connect('localhost', 'root', '', 'wallet');
if ($connect->connect_error) {
die("connection error: " . $conn->connect_error);
}
$sql="SELECT * FROM `wallet,user` where wallet.user = user.id and user.name = $name";
$resault = mysqli_query($connect,$sql);
?>
</head>
<body class="bg-dark">
<center>
<div class="container">
<form action="wallet.php" method="get">
<input class="form-control" type="text" name="name" placeholder="enter your username">
<input type="submit" class="btn btn-success" value="login to wallet">
</form>
</div>
</center>
</body>
</html>