-
Notifications
You must be signed in to change notification settings - Fork 0
/
member_check_id.php
54 lines (47 loc) ยท 990 Bytes
/
member_check_id.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style>
h3 {
padding-left: 5px;
border-left: solid 5px #edbf07;
}
#close {
margin:20px 0 0 80px;
cursor:pointer;
}
</style>
</head>
<body>
<h3>์์ด๋ ์ค๋ณต์ฒดํฌ</h3>
<p>
<?php
$id = $_GET["id"];
if(!$id)
{
echo("<li>์์ด๋๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์!</li>");
}
else
{
$con = mysqli_connect("localhost", "user1", "12345", "sample");
$sql = "select * from members where id='$id'";
$result = mysqli_query($con, $sql);
$num_record = mysqli_num_rows($result);
if ($num_record)
{
echo "<li>".$id." ์์ด๋๋ ์ค๋ณต๋ฉ๋๋ค.</li>";
echo "<li>๋ค๋ฅธ ์์ด๋๋ฅผ ์ฌ์ฉํด ์ฃผ์ธ์!</li>";
}
else
{
echo "<li>".$id." ์์ด๋๋ ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค.</li>";
}
mysqli_close($con);
}
?>
</p>
<div id="close">
<img src="./img/close.png" onclick="javascript:self.close()">
</div>
</body>
</html>