Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/venkat/project0416/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/venkat/project0416/disciplineh1.php
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
mysql_connect("localhost","root","") or die(mysql_error());
  mysql_selectdb("upload") or die(mysql_error());
alert("hi");

if ($_GET['discipline'] == 'MBA') {
$quer1=mysql_query("select * from faculty") or die("Invalid Access !!!");
$Options = "<option value=\"\">--Select--</option>";
while ($row = mysql_fetch_array( $quer1 )) {
 $Options .= "<option value=\"{$row['name']}\">{$row['elective']}</option>";
}
$Options .= "<option value=\"student\">MBA-Student wise</option>";

$Options .= "<option value=\"projectid \">MBA-Projectid Wise</option>";

$Options .= "<option value=\"nots\">MBA-Not Submitted</option>";

$Options .= "<option value=\"notv\">MBA-Not Verified</option>";
$

   echo $Options;

}


if ($_GET['discipline'] == 'MS') {

$quer1=mysql_query("select * from faculty") or die("Invalid Access !!!");
$Options = "<option value=\"\">--Select--</option>";
while ($row = mysql_fetch_array( $quer1 )) {
 $Options .= "<option value=\"{$row['name']}\">{$row['elective']}</option>";
}

$Options .= "<option value=\"student\">MS-Student Wise</option>";

$Options .= "<option value=\"projectid\">MS-Projectid Wise</option>";

$Options .= "<option value=\"nots\">MS-Not Submitted</option>";

$Options .= "<option value=\"notv\">MS-Not Verified</option>";

   echo $Options;

}

?>



ZeroDay Forums Mini