-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
58 lines (37 loc) · 1.07 KB
/
signup.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
50
51
52
53
54
55
56
57
58
<?php
$con=mysqli_connect("localhost","team27","team27","team27");
if(mysqli_connect_error()){
printf("MariaDB 접속 실패!:%s\n",mysqli_connect_error());
exit();
}
else{
$sql="select * from user_info " ;
$res=mysqli_query($con,$sql);
if($res){
$cnt=mysqli_num_rows($res);
echo"<b>현재 이용자 수: </b>","<b>$cnt</b>";
}
else{
}
}
?>
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>회원 가입</title>
</head>
<style>
body { background-color: #D8F781; }
p { background-color: #D8F781; }
</style>
<body>
<div style="width:400px; height:250px; position: absolute; left: 400px; top: 250px;">
<h1> <b>회원 가입</b></h1>
<form action="register.php" method="POST">
<p><input type="text" name="username" required>
<p><input type="password" name="password" required></p>
<p><input type="submit" value="회원 가입"></p>
</div>
</body>
</html>