-
Notifications
You must be signed in to change notification settings - Fork 0
/
deleteacct.php
68 lines (51 loc) · 1.62 KB
/
deleteacct.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
59
60
61
62
63
64
65
66
67
68
<?php
session_start();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ZUMBA AIR</title>
<link rel="stylesheet" type="text/css" href="zumbacss.css">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+KR|Pacifico" rel="stylesheet">
<style>
form {display:inline; padding:20px;}
</style>
</head>
<body>
<div id="banner">
<div class="logoimg">
<img src="zumbaairlogo.png" height="140px" width="140px";>
</div>
<div class="logobrand">
<p>THE PRIDE OF AIR TRAVEL</p>
</div>
</div>
<div class="transition"><a href="logout.php"><input type="button" value="Logout"></a></div>
<div>
<?php
echo'<div id = "notes">' ;
echo "<ul style='list-style-type:none;'>";
echo'<li><form action="createaccount.php" method="GET">
<button class="button" type="submit" name="createaccount">Create Account </button>
</form> </li>' ;
echo'<li><form action="viewaccount.php" method="GET">
<button class="button" type="submit" name="viewaccount">View Account </button>
</form> </li>' ;
echo "</ul>";
echo "<br><br><br><br><br><br><br>";
echo "</div>";
?>
<?php
echo "<br><br><br><br><br><br><br>";
include "../../../connection_string.php"; //contains MySQL login information
mysql_select_db("ZumbaAir", $con);
$insertquery = mysql_query("DELETE FROM ZumbaAccountTable WHERE comid = '".$_SESSION['comid']."'");
echo "<center>Account deleted successfully! <br> <br>";
echo "<br><br><br><br><br><br><br>";
?>
</div>
<div id="footer">
</br>
<b>© Zumba Air| [email protected] | </b></div>
</body>
</html>