Server IP : 172.16.15.8 / Your IP : 18.119.162.226 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/ajzamor/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- housingDeleteStudentAct.php Andrew Zamor --> <body style="background-color:powderblue;"> <CENTER> <H1> Delete a Student </H1> <HR> <?php session_start(); $pass = $_SESSION['psw']; $_SESSION['psw'] = $pass; if($pass != "password") print "Go away."; else { $last = $_POST["last"]; $host = 'localhost'; $user = 'ajzamor'; $passwd = 'cs389'; $database = 'ajzamor'; $connect = mysqli_connect($host, $user, $passwd); $query = "delete from HOUSING where LAST = '$last'"; mysqli_select_db($connect, $database); if(mysqli_query($connect, $query)) print "<CENTER><B><P>Insert successful. $last has been deleted. <P></B></CENTER>"; else print "<CENTER><P>Insert fail. Please Try Again. </CENTER><P>"; mysqli_close($connect); } ?> <P> <A HREF=housingAdmin.html> Admin Menu <A> <P> <A HREF=housingMain.html> Main Menu </A> </CENTER>