MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home/celkcksm/ecampus.ncriptech.com/../websites/miereducation.e-campus.co.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/ecampus.ncriptech.com/../websites/miereducation.e-campus.co.in/postcourse.php
<?php
include ("include/config.inc.php");
 $myArray = array();
 
 if($_POST['type']=='course'){
if ($result = mysqli_query($con,"SELECT * FROM admission_enquiry_form  where course='".$_POST['data']."' AND academicyear='".$_POST['session']."'")) {

    while($row = mysqli_fetch_array($result)) {
            $myArray[] = $row;
    }
	  echo json_encode($myArray);
  
}
/*if ($result1 = $con->query("SELECT * FROM direct_admission  where course='".$_POST['data']."'")) {

    while($row = $result1->fetch_array(MYSQL_ASSOC)) {
            $myArray[] = $row;
    }
	
  
}  */

}


if($_POST['type']=="getsession"){
    $course=$_POST['course'];
    $sessionQ=mysqli_query($con,"select academictitle,id from commenacademicyear where degree='".$course."'");
    while($sessionR=mysqli_fetch_array($sessionQ)){
        $myArray[]=$sessionR;
    }
    echo json_encode($myArray);
}
 if($_POST['type']=='faculty'){
if ($result = mysqli_query($con,"SELECT * FROM employeeentryform  where EmployeeType='".$_POST['data']."'")) {

    while($row = mysqli_fetch_array($result)) {
            $myArray[] = $row;
    }
	
  
}

  echo json_encode($myArray);
}

?>

MMCT - 2023