Server IP : 172.16.15.8 / Your IP : 18.227.48.237 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/wcdavis/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); ?> <head> <link rel="stylesheet" type="text/css" href="upos.css"> </head> <CENTER><H2>Results:</H2></CENTER> <hr> <?php $username = $_SESSION['username']; $storenum = $_SESSION['storenum']; // still to add: a check for making sure you can only fire employees from your store, and only if you are manager status or above. $target = $_POST['target']; $host = 'localhost'; $user = 'wcdavis'; $pass = 'cs480'; $database = 'wcdavis'; $connect = mysql_connect($host, $user, $pass); $table_name = 'USERS'; if($connect) { MYSQL_select_db($database); $query = "delete from $table_name where username = '$target'"; //echo "$query <br>"; $result_id = mysql_query($query, $connect); if($result_id) {echo "The employee $target has been fired.<p><A HREF='UposHF.php'>Back to hire page?</A><br>";} else {echo "please try again.<A HREF='UposHF.php'>Back to hire page?</A><br>";} } ?><hr> <br> <a href="uposdir.php"> <img src="HouseBlack.png" width="64" height="64"></a>