CasperSecurity

Current Path : /var/www/acasv2.uiet.co.in/v.2.0/api/request/library/dd_classification/
Upload File :
Current File : /var/www/acasv2.uiet.co.in/v.2.0/api/request/library/dd_classification/ddc_division_insert_api.php

<?php

	session_start();
	
	include '../../../../web/connection/connection.php';
	
	$connection = new createConnection();
	$connection->connect();
	
	$ddc_main= $_POST['ddc_main'];
	$ddc_div_code = $_REQUEST['ddc_div_code'];
	$ddc_div_desp = $_REQUEST['ddc_div_desc'];
	
	$date = date('Y-m-d');
	$userId = $_SESSION['userId'];
	$is_active = 'yes';
	
	$Select = "SELECT * FROM ddc_mainclass WHERE ddc_mainclass_description = '$ddc_main'";
$Query = mysqli_query($connection->myconn, $Select);
$Result = mysqli_fetch_assoc($Query);
$ddc_mainclass_id = $Result['ddc_mainclass_id'];
   
	$newInsert ="INSERT INTO ddc_division(ddc_mainclass_id,ddc_division_code,	ddc_division_description,created_on,created_by,is_active)
		VALUES('$ddc_mainclass_id','$ddc_div_code','$ddc_div_desp','$date','".(int)$userId."','$is_active')";
				
	if($newInsert == TRUE){
	$_SESSION['ERROR_MSG'] = "Success";
		$_SESSION['MSG_ALRT'] = "TRUE";
		header('location: ddc_mainclass.php');
		
	
	} else {
		$_SESSION['ERROR_MSG'] = "Unsuccess";
		$_SESSION['MSG_ALRT'] = "FALSE";
		header('location: ddc_mainclass.php');
	}
?>
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