-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeleteAdminAccount.php
38 lines (32 loc) · 1.14 KB
/
deleteAdminAccount.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
<!doctype html>
<html>
<head>
<title>Success</title>
</head>
<body>
<?php
session_start();
$adminID = $_SESSION['adminID'];
/* $destination = $_SESSION["destination"];
$dateListed = $_SESSION["dateListed"];
$weight = $_SESSION["weight"];
$origin = $_SESSION["origin"];
$rate=$_SESSION["rate"];
$clientID=$_SESSION['clientID'];//for integration with login page
$miles=$_SESSION['miles'];
$ratePerMile=($rate/$miles); */
$listingID=$_SESSION['listingID'];
if (isset($_SESSION['adminID']))
{
echo "<a href='logout.php'>Return</a>";
}
require_once("db.php");
$sql = "delete from admin where adminID=$adminID";
/*"insert into listing
( origin, destination, dateListed, weight, rate, state, CDL, dateFufilled, clientID, miles, ratePerMile, clientName)
values ('$origin', '$destination', '$dateListed', '$weight', '$rate','$state', '$CDL', '$dateFufilled', '$clientID', '$miles', '$ratePerMile', '$clientName')";
*/
$result=$mydb->query($sql);
?>
</body>
</html>