CasperSecurity

Current Path : /var/www/acasv2.uiet.co.in/v.2.0/api/request/academic/branch/
Upload File :
Current File : /var/www/acasv2.uiet.co.in/v.2.0/api/request/academic/branch/edit_branch.php

<?php

	session_start();
	
	include '../../../../web/connection/connection.php';
	
	// branch variables
	$branch_id = $_REQUEST['branch_id'];
	$branch_name=$_REQUEST['branch_name'];
	$branch_short_name = $_REQUEST['branch_short_name'];
	$no_seat = $_REQUEST['no_seat'];
	$no_section = $_REQUEST['no_section'];
	$branch_code = $_REQUEST['branch_code'];
	$modified_on = date('Y-m-d');
	$modified_by = $_SESSION['USER_ID'];
	$is_active = 'yes';
	
	// branch section variables
	$branch_section_id = $_REQUEST['branch_section_id'];
	$academic_session = $_REQUEST['academic_session'];
	$branch_id = $_REQUEST['branch_id'];
	$section_id = $_REQUEST['section_id'];
	$capacity = $_REQUEST['capacity'];
	
	
	// update variables into branch table
	$db_handle = new DBController();
	
	$newUpdate = $db_handle->runMyUpdate("UPDATE branchs SET branch_id = '$branch_id',branch_name = '$branch_name',branch_short_name='$branch_short_name',no_seat='$no_seat',
	no_section='$no_section',branch_code='$branch_code', modified_on='$modified_on',modified_by='$modified_by',is_active='$is_active' WHERE branch_id = '$host'");
	
	 if($newUpdate == TRUE){
	  
	  echo 'Data updated Successfully in table 1';
	  
	  
	 // update variables into branch section table
	$db_handle = new DBController();
	
	$newUpdate2 = $db_handle->runMyUpdate("UPDATE branch_section SET branch_section_id = '$branch_section_id',branch_id ='$branch_id',section_id='$section_id' WHERE branch_section_id = '$host'");
	
	 if($newUpdate2 == TRUE){
	  
	  echo 'Data updated Successfully in table 2';
	  
	}else{
	  
	  echo 'Not updated in 2' ;
	  
	}
	  
	}else{
	  
	  echo 'Not updated in 1' ;
	  
	}
	
?>
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY