Server IP : 172.16.15.8 / Your IP : 18.119.28.213 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/kahenry/../ipjoslyn/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- evaluation.php Ian Joslyn 4/17/2022 Dispaly the Evaluation Table with updated entries --> <?php session_start(); $pass=$_SESSION['psw']; if($pass != "project") { print "<FONT color=red> Incorrect Password </FONT>"; include ("project5Login.html"); } else { $gender = $_POST['gender']; $status = $_POST['status']; $coursenum = $_POST ['coursenum']; $lectPrep = $_POST['lectPrep']; $stuPart = $_POST['stuPart']; $rating = $_POST['rating']; $host = 'localhost'; $user = 'ipjoslyn'; $passwd = 'CS389'; $database = 'ipjoslyn'; $connect = mysql_connect($host, $user, $passwd); $query = "insert into EVALUATION values ('$gender', '$status', '$coursenum','$lectPrep', '$stuPart', '$rating')"; mysql_select_db($database); if(mysql_query($query, $connect)) include("evaluationDisplay.php"); else print "<P>Insert fail.<p>"; mysql_close($connect); } ?>