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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/cngray/www/acuDia2.php
<center>
<body bgcolor = "moccasin">
<font size = "7" color = "green"><b>
Where are your symptoms occuring?</b>
</font>
<hr>
<?php
	
	$host = 'localhost';
        $user = 'jdwhitehurst';
        $passwd = 'vwccsjdwhitehurst';
        $database = 'jdwhitehurst';


	$sympArray = array();
	$linkArray = array();
	$i = 0;
	$head = $_POST['head'];

        $connect = mysqli_connect($host, $user, $passwd);
        $query = "select * from POINTS";

        mysqli_select_db($connect, $database);
        $result_id = mysqli_query($connect, $query);

	if($result_id)
        {
                while($row = mysqli_fetch_assoc($result_id))
                {	$sympArray[$i] = $row['SYMPTOM'];
			$linkArray[$i] = $row["REMEDIES"];
			$i += 1;
               	}
        }
        else
                print "Fail.<p>";

	if(count($_POST['symptoms']) > 0)
	{
		if (in_array(1,$_POST['symptoms']))
		{
	                print '<table border=1>';
                        print '<TR><B>Head Pains</B></TR>';
	                print '<TH> SYMPTOM <TH> REMEDIES';

			for($x = 0; $x < 5; $x++)
			{
				print '<TR>';
                                print "<td>$sympArray[$x] </td>";
				print "<td><a href =".$linkArray[$x].">
					Show remedy for symptom </a></td>";
                                print '</TR>';
			}
		}
		if (in_array(2,$_POST['symptoms']))
                {
 			
	                print '<table border=1>';
			print '<TR><B>Local Pains</B></TR>';
        	        print '<TH> SYMPTOM <TH> REMEDIES';

                        for($x = 5; $x < 17; $x++)
                        {
                                print '<TR>';
                                print "<td>$sympArray[$x] </td>";
                                print "<td><a href =".$linkArray[$x].">
					Show remedy for symptom </a></td>";
                                print '</TR>';
                        }
                }
		if (in_array(3,$_POST['symptoms']))
                {
	                print '<table border=1>';
                        print '<TR><B>Cold and Flu Symptoms</B></TR>';
        	        print '<TH> SYMPTOM <TH> REMEDIES';

                        for($x = 17; $x < 22; $x++)
                        {
                                print '<TR>';
                                print "<td>$sympArray[$x] </td>";
                                print "<td><a href =".$linkArray[$x].">
					Show remedy for symptom </a></td>";
                                print '</TR>';
                        }
                }
		if (in_array(4,$_POST['symptoms']))
                {
	                print '<table border=1>';
                        print '<TR><B>Nervous System</B></TR>';
        	        print '<TH> SYMPTOM <TH> REMEDIES';

                        for($x = 22; $x < 28; $x++)
                        {
                                print '<TR>';
                                print "<td>$sympArray[$x] </td>";
                                print "<td><a href =".$linkArray[$x].">
					Show remedy for symptom </a></td>";
                                print '</TR>';
                        }
                }
		if (in_array(5,$_POST['symptoms']))
                {
	                print '<table border=1>';
                        print '<TR><B>Cardiovascular Issues</B></TR>';
        	        print '<TH> SYMPTOM <TH> REMEDIES';

                        for($x = 28; $x < 31; $x++)
                        {
                                print '<TR>';
                                print "<td>$sympArray[$x] </td>";
                                print "<td><a href =".$linkArray[$x].">
					Show remedy for symptom </a></td>";
                                print '</TR>';
                        }
                }
		if (in_array(6,$_POST['symptoms']))
                {
	                print '<table border=1>';
                        print '<TR><B>Abdominal Pains</B></TR>';
        	        print '<TH> SYMPTOM <TH> REMEDIES';

                        for($x = 31; $x < 35; $x++)
                        {
                                print '<TR>';
                                print "<td>$sympArray[$x] </td>";
                                print "<td><a href =".$linkArray[$x].">
					Show remedy for symptom </a></td>";
                                print '</TR>';
                        }
                }
		if (in_array(7,$_POST['symptoms']))
                {
	                print '<table border=1>';
                        print '<TR><B>Womens Pains</B></TR>';
        	        print '<TH> SYMPTOM <TH> REMEDIES';

                        for($x = 35; $x < 38; $x++)
                        {
                                print '<TR>';
                                print "<td>$sympArray[$x] </td>";
                                print "<td><a href =".$linkArray[$x].">
					Show remedy for symptom </a></td>";
                                print '</TR>';
                        }
                }
		if (in_array(8,$_POST['symptoms']))
                {
	                print '<table border=1>';
                        print '<TR><B>Urinary Problems</B></TR>';
        	        print '<TH> SYMPTOM <TH> REMEDIES';

                        for($x = 38; $x < 41; $x++)
                        {
                                print '<TR>';
                                print "<td>$sympArray[$x] </td>";
                                print "<td><a href =".$linkArray[$x].">
					Show remedy for symptom </a></td>";
                                print '</TR>';
                        }
                }
		if (in_array(9,$_POST['symptoms']))
                {
	                print '<table border=1>';
                        print '<TR><B>Other Problems</B></TR>';
        	        print '<TH> SYMPTOM <TH> REMEDIES';

                        for($x = 41; $x < 46; $x++)
                        {
                                print '<TR>';
                                print "<td>$sympArray[$x] </td>";
                                print "<td><a href =".$linkArray[$x]."> 
					Show remedy for symptom </a></td>";
                                print '</TR>';
                        }
                }
	}
	else
	{
		print 'No points selected. ';
		print 'Go back and select something';
		print '<BR><A HREF=acuDia.html style="color : black">
			Go Back</a><p>';
	}
	print '</font>';
        print '<table border=1>';
	print '<TR><A HREF = acuMain.html style = "color : black">
		Main_Page </A></TR>';

	mysqli_close($connect);

?>
<p>
</center>


Stv3n404 - 2023